mirror of
https://github.com/wassname/talk.git
synced 2026-08-18 12:30:39 +08:00
[CORL-503] More stable CSS classNames (#2477)
* feat: add more css classnames * fix: snapshots
This commit is contained in:
@@ -108,6 +108,8 @@ export class Button extends React.Component<Props> {
|
||||
disabled={disabled}
|
||||
ref={forwardRef}
|
||||
type={type}
|
||||
data-variant={variant}
|
||||
data-color={color}
|
||||
{...rest}
|
||||
/>
|
||||
);
|
||||
|
||||
@@ -4,6 +4,8 @@ exports[`forwards ref 1`] = `
|
||||
<ForwardRef(forwardRef)
|
||||
className=""
|
||||
classes={Object {}}
|
||||
data-color="regular"
|
||||
data-variant="regular"
|
||||
>
|
||||
Push me
|
||||
</ForwardRef(forwardRef)>
|
||||
@@ -13,6 +15,8 @@ exports[`renders a regular sized, primary colored ghost button with fullWidth 1`
|
||||
<ForwardRef(forwardRef)
|
||||
className="sizeRegular colorPrimary variantGhost fullWidth"
|
||||
classes={Object {}}
|
||||
data-color="primary"
|
||||
data-variant="ghost"
|
||||
>
|
||||
Push me
|
||||
</ForwardRef(forwardRef)>
|
||||
@@ -22,6 +26,8 @@ exports[`renders active state 1`] = `
|
||||
<ForwardRef(forwardRef)
|
||||
className="active"
|
||||
classes={Object {}}
|
||||
data-color="regular"
|
||||
data-variant="regular"
|
||||
>
|
||||
Push me
|
||||
</ForwardRef(forwardRef)>
|
||||
@@ -36,6 +42,8 @@ exports[`renders correctly 1`] = `
|
||||
"mouseHover": "mouseHover",
|
||||
}
|
||||
}
|
||||
data-color="regular"
|
||||
data-variant="regular"
|
||||
>
|
||||
Push me
|
||||
</ForwardRef(forwardRef)>
|
||||
|
||||
Reference in New Issue
Block a user