[CORL-503] More stable CSS classNames (#2477)

* feat: add more css classnames

* fix: snapshots
This commit is contained in:
Vinh
2019-08-20 19:22:58 +00:00
committed by Wyatt Johnson
parent b9f9e9b2d4
commit f3e615a610
72 changed files with 1106 additions and 184 deletions
@@ -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)>