#Customizing components

2 messages · Page 1 of 1 (latest)

bitter tapir
#

Is this the right approach to customize components, I'm asking because it doesn't work until I put the !important keyword.

// other fields in components prop of the THEME
  ActionIcon: ActionIcon.extend({
    classNames: {
      icon: styles.actionIconIcon,
    },
  }),

CSS

.actionIconIcon {
  width: rem(20px) !important;
  height: rem(20px) !important;
}
summer galleon