Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 6 additions & 6 deletions packages/ui-buttons/src/BaseButton/v2/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -52,16 +52,16 @@ const buttonSizeToIconSize = {
small: 'sm',
medium: 'md',
large: 'lg',
condensedSmall: 'xs',
condensedMedium: 'xs'
condensedSmall: 'sm',
condensedMedium: 'md'
} as const

const buttonColorToIconColor = {
'primary': 'inherit',
primary: 'inherit',
'primary-inverse': 'inherit',
'secondary': 'inherit',
'success': 'inherit',
'danger': 'inherit',
secondary: 'inherit',
success: 'inherit',
danger: 'inherit',
'ai-primary': 'inherit',
'ai-secondary': 'ai'
} as const
Expand Down
4 changes: 2 additions & 2 deletions packages/ui-buttons/src/Button/v2/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -195,14 +195,14 @@ type: example

### Rendering Buttons without backgrounds

Use backgroundless buttons when there is a need to deemphasize the button. Be sure to use border/text colors that meet the proper contrast ratios with whatever background they are placed on.
Use backgroundless buttons when there is a need to deemphasize the button. Be sure to use border/text colors that meet the proper contrast ratios with whatever background they are placed on. Backgroundless buttons are sometimes called `tertiary` variant.

```js
---
type: example
---
<View display="block">
<Button renderIcon={PlusInstUIIcon} withBackground={false} color="secondary" margin="small">Click here</Button>
<Button renderIcon={PlusInstUIIcon} withBackground={false} color="primary" margin="small">Click here</Button>
</View>
```

Expand Down
Loading