Skip to content

[hidden]{display:none !important;} #467

Closed
@shawnbot

Description

We should add this to primer-base to better support custom elements, and potentially increase the selector specificity to override our d-* utility classes. This will encourage custom elements and JS behaviors to toggle visibility with the hidden attribute rather than toggling the d-none utility class.

As more custom elements are extracted from github.com and designed to function separately from Primer, and as we consider other environments (such as React), we might even discuss deprecating d-none entirely. 😬

/cc @muan

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions