Skip to content

Commit

Permalink
fix hover style
Browse files Browse the repository at this point in the history
  • Loading branch information
stephenmathieson committed Feb 3, 2025
1 parent ad512a8 commit a2453be
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 10 deletions.
9 changes: 1 addition & 8 deletions docs/pages/components/Button.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -93,14 +93,7 @@ When you need a semantic button with the visual appearance of a link.
</Button>
```

### Disabled Badge with Label

```jsx example
<Button variant="badge" disabled>
<BadgeLabel>Label:</BadgeLabel>
value
</Button>
```

### Additional Button States

Expand All @@ -122,7 +115,7 @@ When you need a semantic button with the visual appearance of a link.
props={[
{
name: 'variant',
type: ['primary', 'secondary', 'tertiary', 'error', 'link', 'tag'],
type: ['primary', 'secondary', 'tertiary', 'error', 'link', 'tag', 'badge'],
defaultValue: 'primary',
description: 'Visual style of the button.'
},
Expand Down
7 changes: 5 additions & 2 deletions packages/styles/button.css
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,8 @@
gap: var(--space-smallest);
}

.Button--tag {
.Button--tag,
.Button--badge {
position: relative;
}

Expand Down Expand Up @@ -342,7 +343,9 @@ button.Link {
}

.cauldron--theme-dark
.Button--tag:not([disabled]):not([aria-disabled='true']):hover:before {
.Button--tag:not([disabled]):not([aria-disabled='true']):hover:before,
.cauldron--theme-dark
.Button--badge:not([disabled]):not([aria-disabled='true']):hover:before {
box-shadow: 0 0 0 1px var(--dark-workspace-color),
0 0 0 2px var(--accent-info);
}
Expand Down

0 comments on commit a2453be

Please sign in to comment.