-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
refactor(Slug): refactor Slug callout into composable components #15036
refactor(Slug): refactor Slug callout into composable components #15036
Conversation
✅ Deploy Preview for v11-carbon-react ready!
To edit notification comments on pull requests, go to your Netlify site configuration. |
✅ Deploy Preview for carbon-elements ready!
To edit notification comments on pull requests, go to your Netlify site configuration. |
e93f56f
to
3144217
Compare
@tw15egan Can we had a control in the storybook playground to turn on and off the action bar? |
@aagonzales Yeah definitely, I can add something to turn it off. For now, the first two normal slugs (mini and 2xs) in the default story don't have the toolbar. |
@aagonzales updated 👍🏻 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
…bon-design-system#15036) * feat(Slug): scaffold out AI Slug component * feat(slug): add gradient tokens to themes, hover styles * feat(slug): add focus styles, cleanup storybook * fix(Theme): adjust small slug hover tokens * feat(Slug): add hollow slug * feat(Slug): initial inline styles * chore(snapshot): update snapshots * feat(Slug): add inline styles * fix(Slug): refactor inline variant * style(Slug): tweak inline styles * style(Slug): add hover styles to inline variant * style(Slug): add initial callout styles * style(Slug): tokenize gradients * style(Slug): adjust padding * chore: udpate snapshots * style(Slug): adjust padding with hollow dot, fix text colors * fix(Slug): fix hover styles when focused * refactor(Slug): remove ai from prefix * refactor(Slug): break Slug callout into composable components * style(Slug): add styles for action bar * chore(storybook): update stories to use SlugContent, SlugToolbar * refactor(Slug): rename SlugToolbar to SlugActions * chore(storybook): remove console.log * chore(storybook): add storybook toggle to show / hide action bar --------- Co-authored-by: Andrea N. Cardona <[email protected]> Co-authored-by: Taylor Jones <[email protected]>
Closes #15051
Refs #14947
This is a continuation of the initial
Slug
PR that adds in the action bar to theSlug
callout.Changelog
New
Slug
action barSlug
is now composed similarly toToggletip
, with aSlugContent
component mapping toToggletipContent
andSlugActions
mapping toToggletipActions
.Testing / Reviewing
Ensure that all
hollow
Slug
's only render the default callout, and all others render the new callout styles. Ensure there are no visual regressions.