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

fix(feature-card-block-large): focus outline now wraps around card properly #4139

Conversation

IgnacioBecerra
Copy link
Contributor

Related Ticket(s)

#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

After:
Screen Shot 2020-10-05 at 3 58 13 PM

Changelog

New

  • Added new outline values to .bx--feature-card-block-large .bx--card:focus

@ibmdotcom-bot
Copy link
Contributor

ibmdotcom-bot commented Oct 5, 2020

@ibmdotcom-bot
Copy link
Contributor

ibmdotcom-bot commented Oct 5, 2020

Comment on lines 37 to 38
outline-width: 3px;
outline-offset: 1px;
Copy link
Member

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.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Updated!

Copy link
Member

@kennylam kennylam left a 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!

@kennylam kennylam added hacktoberfest-accepted Ready to merge Label for the pull requests that are ready to merge labels Oct 7, 2020
@kodiakhq kodiakhq bot merged commit 59c0d3f into carbon-design-system:master Oct 7, 2020
ariellalgilmore pushed a commit to ariellalgilmore/carbon-for-ibm-dotcom that referenced this pull request Oct 22, 2020
…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) -->
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Ready to merge Label for the pull requests that are ready to merge
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants