mirror of https://github.com/apache/superset.git
feat(components): Add static class name with button style (#26639)
This commit is contained in:
parent
a09e5557bc
commit
959a5a5ad6
|
@ -148,7 +148,14 @@ export default function Button(props: ButtonProps) {
|
|||
<AntdButton
|
||||
href={disabled ? undefined : href}
|
||||
disabled={disabled}
|
||||
className={cx(className, 'superset-button', { cta: !!cta })}
|
||||
className={cx(
|
||||
className,
|
||||
'superset-button',
|
||||
// A static class name containing the button style is available to
|
||||
// support customizing button styles in embedded dashboards.
|
||||
`superset-button-${buttonStyle}`,
|
||||
{ cta: !!cta },
|
||||
)}
|
||||
css={{
|
||||
display: 'inline-flex',
|
||||
alignItems: 'center',
|
||||
|
|
Loading…
Reference in New Issue