Update tag spacing and styling for remove button (#1283)
### Context - Adds custom padding to each side based on if the tag is removable or not - Improves hover state for the remove button when the tag is focused - Adds padding to the remove button
This commit is contained in:
parent
5c5ef68a8a
commit
e274462ba0
@ -62,16 +62,31 @@ export class Tag extends SLTag {
|
||||
.tag__remove {
|
||||
color: var(--sl-color-blue-600);
|
||||
border-radius: 100%;
|
||||
margin-left: 0.25rem;
|
||||
padding: 0.125rem;
|
||||
}
|
||||
|
||||
.tag__remove:hover {
|
||||
background-color: var(--sl-color-blue-600);
|
||||
background-color: var(--sl-color-blue-500);
|
||||
color: var(--sl-color-neutral-0);
|
||||
}
|
||||
|
||||
:focus .tag__remove:hover {
|
||||
color: var(--sl-color-blue-500);
|
||||
background-color: var(--sl-color-neutral-0);
|
||||
}
|
||||
|
||||
.tag--small {
|
||||
font-size: var(--sl-font-size-x-small);
|
||||
}
|
||||
|
||||
.tag--medium {
|
||||
padding: 0 0.5rem;
|
||||
}
|
||||
|
||||
.tag--medium:is(.tag--removable) {
|
||||
padding: 0 0.125rem 0 0.5rem;
|
||||
}
|
||||
`,
|
||||
];
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user