Skip to content

Commit

Permalink
Cursor feedback
Browse files Browse the repository at this point in the history
  • Loading branch information
dlnr committed May 10, 2024
1 parent e078fc7 commit 3712d6c
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
3 changes: 1 addition & 2 deletions packages/css/src/components/file-input/file-input.scss
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@

.ams-file-input:disabled {
color: var(--ams-file-input-disabled-color);
cursor: not-allowed;
cursor: var(--ams-file-input-disabled-cursor);
}

.ams-file-input::file-selector-button {
Expand All @@ -35,7 +35,6 @@
color: var(--ams-file-input-file-selector-button-color);
cursor: var(--ams-file-input-file-selector-button-cursor);
font-family: inherit;
font-size: inherit;
font-weight: inherit;
padding-block: var(--ams-file-input-file-selector-button-padding-block);
padding-inline: var(--ams-file-input-file-selector-button-padding-inline);
Expand Down
6 changes: 4 additions & 2 deletions proprietary/tokens/src/components/ams/file-input.tokens.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,8 @@
"line-height": { "value": "{ams.text.level.5.line-height}" },
"outline-offset": { "value": "{ams.focus.outline-offset}" },
"disabled": {
"color": { "value": "{ams.color.neutral-grey2}" }
"color": { "value": "{ams.color.neutral-grey2}" },
"cursor": { "value": "{ams.action.disabled.cursor}" }
},
"file-selector-button": {
"background-color": { "value": "{ams.color.primary-white}" },
Expand All @@ -24,7 +25,8 @@
},
"disabled": {
"box-shadow": { "value": "inset 0 0 0 {ams.border.width.md} {ams.color.neutral-grey2}" },
"color": { "value": "{ams.color.neutral-grey2}" }
"color": { "value": "{ams.color.neutral-grey2}" },
"cursor": { "value": "{ams.action.disabled.cursor}" }
}
}
}
Expand Down

0 comments on commit 3712d6c

Please sign in to comment.