Skip to content

Commit

Permalink
Update CSS variable name to fix typo (#130)
Browse files Browse the repository at this point in the history
Fixes a couple of CSS variable that were missing part of their names.
  • Loading branch information
SjurSutterudSagen authored Apr 25, 2024
1 parent 6262843 commit 56235d7
Show file tree
Hide file tree
Showing 6 changed files with 15 additions and 15 deletions.
6 changes: 3 additions & 3 deletions apps/pxweb2/public/theme/variables.css
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/**
* Do not edit directly
* Generated on Tue, 23 Apr 2024 08:54:01 GMT
* Generated on Thu, 25 Apr 2024 10:31:55 GMT
*/

:root {
Expand All @@ -22,8 +22,8 @@
--px-color-surface-action: #274247;
--px-color-surface-action-hover: #274247;
--px-color-surface-action-active: #162327;
--px-color-surface-subtle-hover: #dbebeb;
--px-color-surface-subtle-active: #c3dcdc;
--px-color-surface-action-subtle-hover: #dbebeb;
--px-color-surface-action-subtle-active: #c3dcdc;
--px-color-surface-info-subtle: #d7ecfe;
--px-color-surface-info-moderate: #c3e6fe;
--px-color-surface-success-subtle: #dbf5dc;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,11 +32,11 @@

&:hover {
> .icon {
background-color: var(--px-color-surface-subtle-hover);
background-color: var(--px-color-surface-action-subtle-hover);
}
}

> .selected {
background-color: var(--px-color-surface-subtle-active) !important;
background-color: var(--px-color-surface-action-subtle-active) !important;
}
}
4 changes: 2 additions & 2 deletions libs/pxweb2-ui/src/lib/components/Button/Button.module.scss
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@

&:hover {
color: var(--px-color-text-on-action-subtle);
background: var(--px-color-surface-subtle-hover);
background: var(--px-color-surface-action-subtle-hover);
}
&:active {
color: var(--px-color-text-on-action);
Expand All @@ -86,7 +86,7 @@

&:hover {
color: var(--px-color-text-on-action-subtle);
background: var(--px-color-surface-subtle-hover);
background: var(--px-color-surface-action-subtle-hover);
}
&:active {
color: var(--px-color-text-on-action);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,11 @@
position: relative;
&:hover {
cursor: pointer;
background-color: var(--px-color-surface-subtle-hover);
background-color: var(--px-color-surface-action-subtle-hover);
}

&:active {
background-color: var(--px-color-surface-subtle-active);
background-color: var(--px-color-surface-action-subtle-active);
}
border-radius: 4px;
}
Expand Down
8 changes: 4 additions & 4 deletions libs/pxweb2-ui/src/lib/components/Link/Link.module.scss
Original file line number Diff line number Diff line change
Expand Up @@ -13,25 +13,25 @@

&:hover {
text-decoration: none;
background-color: var(--px-color-surface-subtle-hover);
background-color: var(--px-color-surface-action-subtle-hover);
}

&:focus {
text-decoration-line: none;
color: var(--px-color-text-on-action-subtle);
background-color: var(--px-color-surface-subtle-active);
background-color: var(--px-color-surface-action-subtle-active);
}

&:focus-visible {
text-decoration-line: none;
color: var(--px-color-text-on-action-subtle);
background-color: var(--px-color-surface-subtle-active);
background-color: var(--px-color-surface-action-subtle-active);
}

&:active {
text-decoration-line: none;
color: var(--px-color-text-on-action-subtle);
background-color: var(--px-color-surface-subtle-active);
background-color: var(--px-color-surface-action-subtle-active);
}
}
.no_underline {
Expand Down
4 changes: 2 additions & 2 deletions libs/pxweb2-ui/style-dictionary/src/default_theme.json
Original file line number Diff line number Diff line change
Expand Up @@ -56,10 +56,10 @@
"surface-action-active": {
"value": "#162327"
},
"surface-subtle-hover": {
"surface-action-subtle-hover": {
"value": "#DBEBEB"
},
"surface-subtle-active": {
"surface-action-subtle-active": {
"value": "#C3DCDC"
},
"surface-info-subtle": {
Expand Down

0 comments on commit 56235d7

Please sign in to comment.