Skip to content

Commit

Permalink
color inheritance (fix for ios)
Browse files Browse the repository at this point in the history
  • Loading branch information
dutchcelt committed Jan 21, 2024
1 parent 22731fa commit 765f61a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/system-colors.css
Original file line number Diff line number Diff line change
Expand Up @@ -43,9 +43,9 @@
--system-canvas-text: CanvasText;

/* Field is broken in iOS */
--system-field: color-mix(in oklab, Field var(--system-cs-state), Canvas);
--system-field: color-mix(in oklab, Field var(--system-cs-state), var(--system-canvas));
/* FieldText is broken in iOS */
--system-field-text: color-mix(in oklab, FieldText var(--system-cs-state), CanvasText);
--system-field-text: color-mix(in oklab, FieldText var(--system-cs-state), var(--system-canvas-text));

/* ButtonText is broken in Safari */
--system-gray-text: color-mix(in oklab, var(--system-canvas) 50%, var(--system-canvas-text));
Expand Down
1 change: 1 addition & 0 deletions src/system-selectors.css
Original file line number Diff line number Diff line change
Expand Up @@ -125,6 +125,7 @@
button,
textarea {
font: inherit;
color: inherit;
font-size: var(--system-font-size-m);
font-family: var(--system-font-family-interactive);
&:not([type='checkbox'], [type='radio']) {
Expand Down

0 comments on commit 765f61a

Please sign in to comment.