Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: create button-group plugin component #42

Merged
merged 2 commits into from
Jul 23, 2023
Merged

Conversation

bpsmartdesign
Copy link
Collaborator

No description provided.

@driss-chelouati driss-chelouati changed the title Feat/button group feat: create button-group plugin component Jul 15, 2023
Copy link
Contributor

@stafyniaksacha stafyniaksacha left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Missing readme update here

@bpsmartdesign
Copy link
Collaborator Author

Yes, I think it's because that plugin has like 5 lines of code and wasn't need any config.

addComponents({
  [`.${prefix}-button-group`]: {
    [`@apply flex`]: {},

    [`.${prefix}-button, .${prefix}-button-action, .${prefix}-button-icon`]:
      {
        [`@apply !border-e-0`]: {},
        [`&:not(:first-child):not(:last-child)`]: {
          [`@apply !rounded-none`]: {},
        },
        [`&:first-child`]: {
          [`@apply !rounded-e-none`]: {},
        },
        [`&:last-child`]: {
          [`@apply !border-e !rounded-s-none`]: {},
        },
      },
  },
})

@stafyniaksacha stafyniaksacha merged commit 038bf40 into main Jul 23, 2023
@stafyniaksacha stafyniaksacha deleted the feat/button-group branch July 23, 2023 21:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants