Skip to content

Commit

Permalink
fix: #1193 correct clear button color in sd-icon and sd-select (#1217)
Browse files Browse the repository at this point in the history
  • Loading branch information
auroraVasconcelos authored Jul 30, 2024
1 parent c49729c commit 0fa1fd2
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
7 changes: 3 additions & 4 deletions packages/components/src/components/input/input.ts
Original file line number Diff line number Diff line change
Expand Up @@ -454,10 +454,10 @@ export default class SdInput extends SolidElement implements SolidFormControl {
disabled: 'text-neutral-500',
readonly: 'text-black',
activeInvalid: 'text-error',
activeValid: 'text-success',
activeValid: 'text-black',
active: 'text-black',
invalid: 'text-error',
valid: 'text-success',
valid: 'text-black',
default: 'text-black'
}[inputState];

Expand Down Expand Up @@ -554,7 +554,6 @@ export default class SdInput extends SolidElement implements SolidFormControl {
@focus=${this.handleFocus}
@blur=${this.handleBlur}
/>
<!-- TODO: substitute text-neutral-400 for text-neutral-500 when available! -->
${hasClearIcon
? html`
<button
Expand All @@ -567,7 +566,7 @@ export default class SdInput extends SolidElement implements SolidFormControl {
>
<slot name="clear-icon">
<sd-icon
class=${cx('text-neutral-500', iconSize)}
class=${cx('icon-fill-neutral-800', iconSize)}
library="system"
name="closing-round"
></sd-icon>
Expand Down
2 changes: 1 addition & 1 deletion packages/components/src/components/select/select.ts
Original file line number Diff line number Diff line change
Expand Up @@ -967,7 +967,7 @@ export default class SdSelect extends SolidElement implements SolidFormControl {
>
<slot name="clear-icon">
<sd-icon
class=${cx('text-neutral-500', iconSize)}
class=${cx('text-icon-fill-neutral-800', iconSize)}
library="system"
name="closing-round"
></sd-icon>
Expand Down

0 comments on commit 0fa1fd2

Please sign in to comment.