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: add border to the selected state in borderless design and fix outline-offset issue in IE11 #823

Merged
merged 2 commits into from Mar 31, 2020

Conversation

InnaAtanasova
Copy link
Contributor

Related Issue

Closes #789
Closes #762

Description

Add border bottom to the selected state in borderless design;
Added ::before attribute to fd-list__item to play the role of an outline since we need an outline offset and this property is not supported in IE11

Screenshots

Before:

Screen Shot 2020-03-30 at 3 01 04 PM

After:

Screen Shot 2020-03-30 at 3 00 34 PM

@InnaAtanasova InnaAtanasova added A11y Accessibility concerns or improvements design review changes labels Mar 30, 2020
@InnaAtanasova InnaAtanasova added this to the Sprint 33 - London milestone Mar 30, 2020
@InnaAtanasova InnaAtanasova self-assigned this Mar 30, 2020
@InnaAtanasova InnaAtanasova changed the title Fix/list item outline ie11 issue fix: add border to the selected state in borderless design and fix outline-offset issue in IE11 Mar 30, 2020
@netlify
Copy link

netlify bot commented Mar 30, 2020

Deploy preview for fundamental-styles ready!

Built with commit 5646fbd

https://deploy-preview-823--fundamental-styles.netlify.com

@InnaAtanasova InnaAtanasova added 0.8.0 and removed A11y Accessibility concerns or improvements labels Mar 30, 2020
Comment on lines +14 to +30
@mixin fake-list-outline($outlineColor: var(--sapContent_FocusColor)) {
&:focus,
&.is-focus {
outline: none;

&::before {
content: '';
position: absolute;
display: block;
border: var(--sapContent_FocusWidth) var(--sapContent_FocusStyle) $outlineColor;
top: 0.1875rem;
left: 0.1875rem;
right: 0.1875rem;
bottom: 0.1875rem;
}
}
}
Copy link
Contributor

Choose a reason for hiding this comment

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

I like this solution, it can be used always, when there are no pseudo elements.

@JKMarkowski JKMarkowski added this to PRs Reviewer approved in Development via automation Mar 31, 2020
@InnaAtanasova InnaAtanasova merged commit a3d018d into master Mar 31, 2020
Development automation moved this from PRs Reviewer approved to Done Mar 31, 2020
@droshev droshev deleted the fix/list-item-outline-ie11-issue branch March 31, 2020 17:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Development
  
Done
4 participants