Inline kind classnames
parent
52c7577972
commit
737fc46b87
|
@ -100,15 +100,14 @@ export default function AccessibleButton({
|
||||||
// Pass through the ref - used for keyboard shortcut access to some buttons
|
// Pass through the ref - used for keyboard shortcut access to some buttons
|
||||||
newProps.ref = inputRef;
|
newProps.ref = inputRef;
|
||||||
|
|
||||||
let classNameBooleans = {
|
|
||||||
"mx_AccessibleButton_hasKind": kind,
|
|
||||||
"mx_AccessibleButton_disabled": disabled,
|
|
||||||
}
|
|
||||||
classNameBooleans["mx_AccessibleButton_kind_" + kind] = kind;
|
|
||||||
newProps.className = classnames(
|
newProps.className = classnames(
|
||||||
"mx_AccessibleButton",
|
"mx_AccessibleButton",
|
||||||
className,
|
className,
|
||||||
classNameBooleans,
|
{
|
||||||
|
"mx_AccessibleButton_hasKind": kind,
|
||||||
|
[`mx_AccessibleButton_kind_${kind}`]: kind,
|
||||||
|
"mx_AccessibleButton_disabled": disabled,
|
||||||
|
},
|
||||||
);
|
);
|
||||||
|
|
||||||
// React.createElement expects InputHTMLAttributes
|
// React.createElement expects InputHTMLAttributes
|
||||||
|
|
Loading…
Reference in New Issue