Skip to content

Commit

Permalink
fix(form): input lines are now proper contrast
Browse files Browse the repository at this point in the history
Signed-off-by: Jeremy Wilken <[email protected]>
  • Loading branch information
gnomeontherun authored and coryrylan committed Jun 23, 2021
1 parent 4d8ca3d commit 6ce2e22
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 4 deletions.
1 change: 1 addition & 0 deletions packages/core/build/tokens.ts
Original file line number Diff line number Diff line change
Expand Up @@ -471,6 +471,7 @@ const aliases = {
300: token('hsla(0, 0%, 0%, 0.6)'),
},
interaction: {
borderColor: token(color.construction[500]),
background: {
value: token(color.white),
hover: token(color.blue[50]),
Expand Down
2 changes: 1 addition & 1 deletion packages/core/src/checkbox/checkbox.element.scss
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
--check-color: #{$cds-global-typography-color-100};
--background: #{$cds-alias-object-opacity-0};
--border-radius: #{$cds-alias-object-border-radius-100};
--border: #{$cds-alias-object-border-width-100} solid #{$cds-alias-object-border-color};
--border: #{$cds-alias-object-border-width-100} solid #{$cds-alias-object-interaction-border-color};
}

.input {
Expand Down
2 changes: 1 addition & 1 deletion packages/core/src/input/input.element.scss
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
--background-size: 0% 100%;
--background-color: #{$cds-alias-object-opacity-0};
--background: linear-gradient(180deg, var(--background-color) 95%, var(--border-color) 0) no-repeat;
--border-color: #{$cds-alias-object-border-color};
--border-color: #{$cds-alias-object-interaction-border-color};
--border: 0;
--border-bottom: #{$cds-alias-object-border-width-100} solid var(--border-color);
--border-radius: 0;
Expand Down
2 changes: 1 addition & 1 deletion packages/core/src/radio/radio.element.scss
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
:host {
--width: #{$cds-global-space-7};
--height: #{$cds-global-space-7};
--border: #{$cds-alias-object-border-width-100} solid #{$cds-alias-object-border-color};
--border: #{$cds-alias-object-border-width-100} solid #{$cds-alias-object-interaction-border-color};
--fill-box-shadow: none;
}

Expand Down
2 changes: 1 addition & 1 deletion packages/core/src/textarea/textarea.element.scss
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

:host {
--background: #{$cds-alias-object-container-background};
--border: #{$cds-alias-object-border-width-100} solid #{$cds-alias-object-border-color};
--border: #{$cds-alias-object-border-width-100} solid #{$cds-alias-object-interaction-border-color};
--padding: #{$cds-global-space-5} #{$cds-global-space-6};
--font-size: #{$cds-global-typography-font-size-3};
--color: #{$cds-global-typography-color-500};
Expand Down

0 comments on commit 6ce2e22

Please sign in to comment.