Skip to content

Commit

Permalink
feat: expose clip-path proertie in checkbox (#615)
Browse files Browse the repository at this point in the history
  • Loading branch information
jgonza16 authored and daniele-zurico committed May 24, 2024
1 parent e328837 commit 982cb3b
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/design-system/formcheckbox.css
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@
content: '';
width: 0.8em;
height: 0.8em;
clip-path: polygon(14% 44%, 0 65%, 50% 100%, 100% 16%, 80% 0%, 43% 62%);
clip-path: token('clip-path-formcontrol_checkmark');
transform: scale(0);
transform-origin: bottom left;
transition: 120ms transform ease-in-out;
Expand Down
1 change: 1 addition & 0 deletions src/design-system/tokens.json
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@
"color-background-formcontrol_suffix": "transparent",
"color-background-formcontrol_prefix": "transparent",
"color-background-formcontrol_checkmark": "white",
"clip-path-formcontrol_checkmark": "polygon(14% 44%, 0 65%, 50% 100%, 100% 16%, 80% 0%, 43% 62%)",
"color-background-highlight_body": "yellow",
"color-background-pre_box": "transparent",
"color-chevron-formcontrol": "#000",
Expand Down
1 change: 1 addition & 0 deletions stories/themes/material.theme.css
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,7 @@
--dcx-border-radius-formcontrol: 6px;
--dcx-color-text-formcontrol: #00000099;
--dcx-color-text-formcontrol_label: #00000099;
--dcx-clip-path-formcontrol_checkmark: inset(4px 1px);
}

.dcx-radio-button-group {
Expand Down

0 comments on commit 982cb3b

Please # to comment.