Skip to content

Commit

Permalink
feat(components): Add static class name with button style (apache#26639)
Browse files Browse the repository at this point in the history
  • Loading branch information
mskelton authored Feb 1, 2024
1 parent a09e555 commit 959a5a5
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion superset-frontend/src/components/Button/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand Down

0 comments on commit 959a5a5

Please sign in to comment.