-
Notifications
You must be signed in to change notification settings - Fork 75
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(list-item): Improve focus outline appearance #9653
Conversation
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.
There are some changes made that are unrelated and would cause regressions here.
@@ -14,6 +14,16 @@ | |||
|
|||
@include disabled(); | |||
|
|||
.indent { |
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.
indent isn't a valid class on the list-item. Can this part be reverted? It should be on .nested-container
. I'm guessing this was copied from a previous release.
} | ||
|
||
.nested-container--open { | ||
@apply flex; | ||
.nested-container--hidden { |
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.
This should be reverted as well.
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.
Code changes look good. I guess since its a focus state our screenshot tests can't really test this. 👍
tr:focus { | ||
.actions-start, | ||
.actions-end { | ||
inset-block: theme("spacing[0.5]"); |
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.
note: At some point these theme() vars will need to be updated to use calcite css vars.
content: ""; | ||
inline-size: theme("spacing[0]"); | ||
z-index: theme("zIndex.header"); | ||
background-color: theme("colors.brand"); |
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.
optional: Might be able to use a css var here for brand.
@apply absolute; | ||
content: ""; | ||
inline-size: theme("spacing[0]"); | ||
z-index: theme("zIndex.header"); |
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.
optional: Might be able to use a css var here for z-index.
Related Issue: #7538
Summary
Make list item highlight display correctly over action items.