Skip to content
This repository was archived by the owner on Oct 17, 2025. It is now read-only.

Add ::details-content example. - #2874

Closed
lukewarlow wants to merge 1 commit into
mdn:mainfrom
lukewarlow:details-content
Closed

lukewarlow wants to merge 1 commit into
mdn:mainfrom
lukewarlow:details-content

Conversation

@lukewarlow

Copy link
Copy Markdown
Contributor

Description

Adds an example for the new ::details-content pseudo element.

Motivation

To showcase this on the MDN page.

Additional details

https://drafts.csswg.org/css-pseudo/#details-content-pseudo

Related issues and pull requests

@lukewarlow
lukewarlow requested review from a team and chrisdavidmills and removed request for a team December 6, 2024 11:54
@lukewarlow

lukewarlow commented Dec 6, 2024 •

Copy link
Copy Markdown
Contributor Author

Linter doesn't seem aware of this new pseudo element. PR to update stylelint stylelint/stylelint#8174

@chrisdavidmills chrisdavidmills left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi @lukewarlow, thanks for submitting the new example; looks good to me.

I'll approve this, but I'm assuming we shouldn't (or can't) merge it until the new stylelint package is picked up by our code?

@lukewarlow

Copy link
Copy Markdown
Contributor Author

@chrisdavidmills we can either wait or I can update the stylelint config to ignore the error for this specific pseudo element.

@chrisdavidmills

Copy link
Copy Markdown
Contributor

@chrisdavidmills we can either wait or I can update the stylelint config to ignore the error for this specific pseudo element.

@lukewarlow I'm happy with either approach. Take your pick.

@github-actions github-actions Bot added the idle Issues and pull requests with no activity for three months. label Jan 16, 2025
@skyclouds2001

Copy link
Copy Markdown
Contributor

maybe now it's better to add it to mdn/content

@lukewarlow

Copy link
Copy Markdown
Contributor Author

Stylelint has been updated so I'm assuming this is ready to go with a rebase (I'm not able to do that till tomorrow but someone else can)? Apologies I let this drop off my radar.

@bsmth

bsmth commented Mar 2, 2025 •

Copy link
Copy Markdown
Member

Stylelint has been updated so I'm assuming this is ready to go with a rebase (I'm not able to do that till tomorrow but someone else can)? Apologies I let this drop off my radar.

Sorry, this is the context -> https://github.com/orgs/mdn/discussions/782#discussion-7920265

tl;dr we're consolidating infrastructure so we can maintain the interactive examples in-page with the rest of the content. See https://github.com/mdn/content/pull/38356/files. If you want to wait for that (#38356) PR to land, then we'll accept the changes in the new format in https://github.com/mdn/content/blob/main/files/en-us/web/css/_doublecolon_details-content/index.md?plain=1

edit: and the timeline for "wait for that (#38356) PR to land" means tomorrow if all goes to plan

@lukewarlow

Copy link
Copy Markdown
Contributor Author

Ah I'll move it over there once that's done then!

@github-actions github-actions Bot removed the idle Issues and pull requests with no activity for three months. label Mar 3, 2025
@bsmth

bsmth commented Mar 3, 2025

Copy link
Copy Markdown
Member

This is now merged if you'd like to have a go at adding the example in content:

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants