-
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
feat(Tile): add slug
prop to SelectableTile
and ExpandableTile
#15222
Conversation
✅ Deploy Preview for v11-carbon-react ready!
To edit notification comments on pull requests, go to your Netlify site configuration. |
@aagonzales few observations:
Let me know how it looks and what else you notice. |
|
@tw15egan For clickable tile let's do this.
|
@tw15egan Selectable tile will need the same hover states and then it also has a selected state change as well. |
@aagonzales just pushed a bunch of changes, including a bunch of new tokens to handle the gradient shift on hover / selected. WIth regards to the rounded edges, will this always be enabled if |
This is looking great @tw15egan! Do we need to adjust the padding on the right of the title to account for the slug? |
@alisonjoseph Hmm the title in there is just for demo purposes... I can fix it here, but not too sure how we can go about systematically accounting for the slug there. This is where I wish you could do rounded corner padding in components! It would really help with this and other components like |
@tw15egan oh yea, duh I knew that. That's tricky, we may just have to leave that up the to the teams building out the details. I don't know that we'd want to pad the entire tile over that much, especially the SelectableTile which already has padding to account for the checkbox. |
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.
LGTM! I didn't caught any issue. 🚀
@tw15egan Ok this may change in the future but for now can we do this for the rounded corners:
|
@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.
🤦🏻 whoops! Fixed it @aagonzales 👍🏻 |
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.
Ship it!
3dd58b6
Hey there! v11.44.0 was just released that references this issue/PR. |
…arbon-design-system#15222) * docs(Tile): scaffold slug story, add demo styles * feat(Tile): add slug to SelectableTile, ExpandableTile * test(snapshot): update snapshots * feat(Tile): add slug prop to Tile * test(snapshot): update snapshots * feat(Tile): add new tokens, add hover, selected styles * test(snapshot): update snapshots * feat(Tile): add new prop for rounded corners * style(Tile): fix border-radius on pseudo elements
Closes #15187
Adds in the
slug
prop forTile
,ClickableTile
,SelectableTile
, andExpandableTile
Changelog
New
slug
prop added to `Tile components listed above.slug
prop forClickableTile
isboolean
only, as it will just render an SVG of the hollow slug since it cannot be interactive. @aagonzales I just pulled the SVG from the figma file and hardcoded it in. Do we have any plans to add this to the icon library, or is this fine for now?Changed
slug.scss
to use the new@mixin callout-gradient
. This generates the background gradient for theTile
, as well as thehover
andselected
states.@include callout-gradient('hover');
Testing / Reviewing
Go to
Tille --> Slug Test
and review that theSlug
renders in the correct place, the slug callout renders as expected, and that the hover / selected states ofClickableTile
andSelectableTile
are correct