Skip to content

Commit 89d76d1

Browse files
committed
fix(Button): success theme type
1 parent 78b4a8b commit 89d76d1

File tree

3 files changed

+5
-4
lines changed

3 files changed

+5
-4
lines changed

src/components/actions/Button/Button.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,7 @@ export const DEFAULT_BUTTON_STYLES: Styles = {
7373
'[data-size="small"]': '4x 4x',
7474
'[data-size="medium"]': '5x 5x',
7575
'[data-size="large"]': '6x 6x',
76+
'[data-type="link"]': 'auto',
7677
},
7778
whiteSpace: 'nowrap',
7879
radius: {
@@ -413,7 +414,7 @@ export const Button = forwardRef(function Button(
413414
download={download}
414415
{...actionProps}
415416
disabled={isDisabledElement}
416-
variant={theme as 'default' | 'danger' | 'special'}
417+
variant={theme as 'default' | 'danger' | 'special' | 'success'}
417418
data-theme={theme}
418419
data-type={type ?? 'secondary'}
419420
data-size={size ?? 'medium'}

src/components/content/Divider.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,15 +27,15 @@ const DividerElement = tasty({
2727
text: 'auto',
2828
},
2929
fill: {
30-
'': '#border',
30+
'': '#light-border',
3131
text: 'none',
3232
},
3333
border: '0',
3434
margin: '0',
3535

3636
Line: {
3737
height: '1bw 1bw',
38-
fill: '#border',
38+
fill: '#light-border',
3939
},
4040
},
4141
styleProps: [...OUTER_STYLES, ...BASE_STYLES, ...COLOR_STYLES],

src/tasty/types.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ export interface BasePropsWithoutChildren<K extends TagName = TagName>
7878
| CSSProperties
7979
| (CSSProperties & { [key: string]: string | number | null });
8080
/** User-defined theme for the element. Mapped to data-theme attribute. Use `default`, or `danger`, or any custom string value you need. */
81-
theme?: 'default' | 'danger' | 'special' | (string & {});
81+
theme?: 'default' | 'danger' | 'special' | 'success' | (string & {});
8282
}
8383

8484
export interface BaseProps<K extends TagName = TagName>

0 commit comments

Comments
 (0)