-
Notifications
You must be signed in to change notification settings - Fork 9
UDS-1975: fix(component-events): added style to fix a:focus #1493
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
Conversation
|
Storybook deployed at https://unity-uds-staging.s3.us-west-2.amazonaws.com/pr-1493/index.html |
mlsamuelson
left a comment
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.
Fix is causes layout shift when the images and links are focused. Are we able to use the same technique as with other focus instances so we avoid that?
I added |
|
@mlsamuelson The overflow hidden on the parent h3 causes the shadow to not appear. The hidden is there because the heading shouldn't pass 3 lines so that's necessary |
|
Is there any way we can accomplish this without the layout shifting when focus occurs? What are our options? If we can't change it, we will need to have The Brand team review the behavior for acceptability. |
The box-shadow on focus extends beyond the element’s box, but since overflow: hidden is applied, it gets clipped. We can’t make it visible without adding a margin, and adding it causes the layout shift. |
|
Hi @mlsamuelson , @davidornelas11
|
|
I'm less concerned with the images, and more concerned with the text - that should be preventable. If we can avoid the text from shifting, then I'm okay with allowing the images to shift some. |
…o card-title UDS-1975
|
Conversation on this here |
|
This has been tested and double checked by Alysia on the brand team. Looks good. Will approve and merge |




UDS-1975
Description
Links