Skip to content

Commit

Permalink
fixes as per PR comment
Browse files Browse the repository at this point in the history
  • Loading branch information
ASpiteri-BCGov committed Dec 7, 2024
1 parent e7a7b1e commit 9a7eea8
Show file tree
Hide file tree
Showing 13 changed files with 69 additions and 85 deletions.
File renamed without changes.
File renamed without changes.
5 changes: 5 additions & 0 deletions dist/index-rtl.css
Original file line number Diff line number Diff line change
Expand Up @@ -276,7 +276,12 @@
--dswp-typography-color-link: var(--bcds-typography-color-link);
--dswp-typography-color-primary: var(--bcds-typography-color-primary);
--dswp-surface-color-primary-button-default: var(--bcds-surface-color-primary-button-default);
--dswp-surface-color-primary-button-hover: var(--bcds-surface-color-primary-button-hover);
--dswp-surface-color-secondary-button-default:var(--bcds-surface-color-secondary-button-default);
--dswp-surface-color-secondary-button-hover: var(--bcds-surface-color-secondary-button-hover);
--dswp-banner-background-dark: #292929;
--dswp-surface-color-border-dark:var(--bcds-surface-color-border-dark);
--dswp-font-dark: #201f1e;
--dswp-theme-primary-gold: var(--bcds-theme-primary-gold);
--dswp-icons-color-info: var(--bcds-icons-color-info);
--dswp-icons-color-danger: var(--bcds-icons-color-danger);
Expand Down
2 changes: 1 addition & 1 deletion dist/index.asset.php
Original file line number Diff line number Diff line change
@@ -1 +1 @@
<?php return array('dependencies' => array(), 'version' => 'e81cc111a7eb25b07ef8');
<?php return array('dependencies' => array(), 'version' => '54a72f307dce81e3a752');
5 changes: 5 additions & 0 deletions dist/index.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/index.css.map

Large diffs are not rendered by default.

2 changes: 2 additions & 0 deletions dist/index.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/index.js.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion functions.php
Original file line number Diff line number Diff line change
Expand Up @@ -50,5 +50,5 @@ function design_system_include_block_style_variations( $dir_path ) {
}

// Set the directory path and include block style variations.
$dir_path = get_template_directory() . '/blocks/core/style-overrides';
$dir_path = get_template_directory() . '/blocks/core/style-variations';
design_system_include_block_style_variations( $dir_path );
106 changes: 25 additions & 81 deletions patterns/card-with-hyperlink-list.php

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions src/styles/block-overrides.scss
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@
}
}


.is-style-heading-callout {
position: relative;
margin-top: 3rem;
Expand Down
5 changes: 5 additions & 0 deletions src/styles/variables.scss
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,12 @@
--dswp-typography-color-link: var(--bcds-typography-color-link);
--dswp-typography-color-primary: var(--bcds-typography-color-primary);
--dswp-surface-color-primary-button-default: var(--bcds-surface-color-primary-button-default);
--dswp-surface-color-primary-button-hover: var(--bcds-surface-color-primary-button-hover);
--dswp-surface-color-secondary-button-default: var(--bcds-surface-color-secondary-button-default);
--dswp-surface-color-secondary-button-hover: var(--bcds-surface-color-secondary-button-hover);
--dswp-banner-background-dark: #292929;
--dswp-surface-color-border-dark: var(--bcds-surface-color-border-dark);
--dswp-font-dark: #201f1e;
--dswp-theme-primary-gold: var(--bcds-theme-primary-gold);
--dswp-icons-color-info: var(--bcds-icons-color-info);
--dswp-icons-color-danger: var(--bcds-icons-color-danger);
Expand Down
22 changes: 22 additions & 0 deletions theme.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,18 @@
}
],
"styles": {
"blocks":{
"core/button": {
"variations": {
"outline": {
"css":"&:hover{background-color:var(--dswp-surface-color-secondary-button-hover)}",
"border": {"color": "var(--dswp-surface-color-border-dark)",
"radius": "4px",
"width": "1px"}
}
}
}
},
"color": {
"text": "var(--dswp-typography-color-primary)",
"background": "var(--dswp-surface-color-background-white)"
Expand All @@ -39,10 +51,20 @@
}
},
"button": {
":hover": {
"color": {
"background": "var(--dswp-surface-color-primary-button-hover)"
}
},
"color": {
"text": "var(--dswp-theme-gray-white)",
"background": "var(--dswp-surface-color-primary-button-default)"
},
"border": {
"color": "var(--dswp-surface-color-border-dark)",
"radius": "4px",
"width": "1px"
},
"typography": {
"fontSize": "var(--dswp-typography-font-size-body)"
}
Expand Down

0 comments on commit 9a7eea8

Please sign in to comment.