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

Summary that Looks like a Link (summary.u-summary-link > a) #460

Open
wesleyboar opened this issue Feb 21, 2025 · 0 comments
Open

Summary that Looks like a Link (summary.u-summary-link > a) #460

wesleyboar opened this issue Feb 21, 2025 · 0 comments

Comments

@wesleyboar
Copy link
Member

wesleyboar commented Feb 21, 2025

Goal

Add .u-summary-link (from Pre-Prod Digital Rocks) to Core-Styles.

Reference

Used on Project #317.

Content as of:

2025-02-21 17:27 CST
summary.u-summary-link {
    display: flex;
}
summary.u-summary-link::before {
    content: '▶';
}
summary.u-summary-link > a {
    flex: 1;
}
/* To undo core-styles, which assumes href-less <a> is disabled */
summary.u-summary-link > a:not([href]) {
    pointer-events: auto;
    opacity: 1;
}
details[open] > summary.u-summary-link::before {
    content: '▼';
}

UI

460.mov
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