-
Notifications
You must be signed in to change notification settings - Fork 159
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
fix(feature-card-block-large): focus outline now wraps around card properly #4139
fix(feature-card-block-large): focus outline now wraps around card properly #4139
Conversation
…k-large-focus-issue
Deploy preview created for package Built with commit: a5134ed73bec710b0d663b7417c7d4c0bd78622d |
Deploy preview created for package Built with commit: a5134ed73bec710b0d663b7417c7d4c0bd78622d |
outline-width: 3px; | ||
outline-offset: 1px; |
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.
Looks good @IgnacioBecerra. Small thing, can we put these styles into :focus
to remain consistent with other component focus states.
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.
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.
Looks good thanks @IgnacioBecerra!
…operly (carbon-design-system#4139) ### Related Ticket(s) carbon-design-system#3881 ### Description The previous FeatureCardBlockLarge wasn't focusing correctly due to reusing the `outline` values meant for the `Default` and `Medium` CardBlocks. Inserting custom values to the Large `:focus` state makes it fit more adequately. Before (notice bottom right): ![Screen Shot 2020-10-05 at 3 59 55 PM](https://user-images.githubusercontent.com/24970122/95140488-dc86be80-0723-11eb-85ad-952e0dd832ab.png) After: ![Screen Shot 2020-10-05 at 3 58 13 PM](https://user-images.githubusercontent.com/24970122/95140401-a77a6c00-0723-11eb-87ea-f3e73aa816ad.png) ### Changelog **New** - Added new `outline` values to `.bx--feature-card-block-large .bx--card:focus` <!-- React and Web Component deploy previews are enabled by default. --> <!-- To enable additional available deploy previews, apply the following --> <!-- labels for the corresponding package: --> <!-- *** "package: vanilla": Vanilla --> <!-- *** "package: services": Services --> <!-- *** "package: utilities": Utilities --> <!-- *** "package: styles": Carbon Expressive, React (Expressive) --> <!-- *** "RTL": React (RTL) --> <!-- *** "feature flag": React (experimental) -->
Related Ticket(s)
#3881
Description
The previous FeatureCardBlockLarge wasn't focusing correctly due to reusing the
outline
values meant for theDefault
andMedium
CardBlocks. Inserting custom values to the Large:focus
state makes it fit more adequately.Before (notice bottom right):
After:
Changelog
New
outline
values to.bx--feature-card-block-large .bx--card:focus