Skip to content

Commit

Permalink
fix(tag): fixes disabled label styles (#16943)
Browse files Browse the repository at this point in the history
* fix(tag): fixes disabled label styles

* docs: useless commit to restart test step

* docs: useless commit #2 to restart test step

---------

Co-authored-by: Riddhi Bansal <41935566+riddhybansal@users.noreply.github.com>
  • Loading branch information
lluisrojass and riddhybansal committed Jul 25, 2024
1 parent 7b24a10 commit 299e624
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
1 change: 0 additions & 1 deletion packages/react/src/components/Tag/Tag.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -216,7 +216,6 @@ const Tag = React.forwardRef(function Tag<T extends React.ElementType>(

const labelClasses = classNames({
[`${prefix}--tag__label`]: !isInteractiveTag,
[`${prefix}--tag--${type}`]: type && !isInteractiveTag,
});

return (
Expand Down
5 changes: 5 additions & 0 deletions packages/styles/scss/components/tag/_tag.scss
Original file line number Diff line number Diff line change
Expand Up @@ -267,6 +267,11 @@
&:hover {
cursor: not-allowed;
}

.#{$prefix}--tag__label {
background-color: $layer;
color: $text-disabled;
}
}

.#{$prefix}--tag--selectable.#{$prefix}--tag--disabled,
Expand Down

0 comments on commit 299e624

Please sign in to comment.