Skip to content

Commit

Permalink
fix(natds-react): fixed texttransform CB2 e FV2 to none update theme
Browse files Browse the repository at this point in the history
affects: @naturacosmeticos/natds-react
DSY-5430
  • Loading branch information
vagnerbarbosant committed Jan 8, 2025
1 parent 56eeaf8 commit c1a5c0f
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ export default {
export const Playground: Story<GayaButtonProps> = (args) => <GayaButton {...args} />
Playground.args = {
children: 'button',
onClick: () => console.log('clicked!')
onClick: () => null
}

export const Variants: Story<GayaButtonProps> = (args) => (
Expand Down
6 changes: 0 additions & 6 deletions packages/react/src/components/GayaButton/GayaButton.styles.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,19 +13,13 @@ type GayaButtonStyleProps = Pick<GayaButtonProps, 'size' | 'showIcon' | 'iconPos
const getPaddingStyles = (theme: Theme) => ({ size, brand, mode }: GayaButtonStyleProps) => {
const brandTheme = buildTheme(brand, mode)
const padding = {
// semi: theme.spacing.micro,
semi: theme.button.paddingX,
// medium: theme.spacing.small,
medium: theme.button.paddingX,
// semiX: theme.spacing.tiny
semiX: theme.button.paddingX
}
const paddingbrand = {
// semi: brandTheme.spacing.micro,
semi: brandTheme.button.paddingX,
// medium: brandTheme.spacing.small,
medium: brandTheme.button.paddingX,
// semiX: brandTheme.spacing.tiny
semiX: brandTheme.button.paddingX
}
if (brand) {
Expand Down
2 changes: 1 addition & 1 deletion packages/react/src/components/GayaButton/GayaButton.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ const GayaButton = React.forwardRef<HTMLButtonElement, GayaButtonProps>(({
return (
<Ripple brand={brand} disabled={disabled} fullWidth={fullWidth}>
<button
className={`${gayaButton} ${className} Button-gaya`}
className={`${gayaButton} ${className} Gaya-Button`}
data-testid={testID}
disabled={disabled || ariaDisabled}
onClick={onClick}
Expand Down

0 comments on commit c1a5c0f

Please sign in to comment.