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

.list causes gap property issues #37

Open
bnjmnrsh opened this issue Jun 18, 2024 · 0 comments
Open

.list causes gap property issues #37

bnjmnrsh opened this issue Jun 18, 2024 · 0 comments

Comments

@bnjmnrsh
Copy link
Member

Because our .list accessibility fix relies on a pseudo-element, it causes flex and grid gap properties to render leading spacing, shown here:

Screenshot 2024-06-18 at 11 46 07

This can be remedied with absolute positioning on the pseudo-element:

.list {
    &::before {
        content: "\200B"; /* add zero-width space */
        position: absolute; // ADD 
    }

    list-style-type: none;
}

Absolute positioning wouldn't usually affect screen readers. However, this issue is related to a particular safari behaviour.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant