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

Fix :last-child selector in Web Components and LIT #296

Merged

Conversation

lpardosixtosMs
Copy link
Contributor

Currently the web components CSS uses the .todo-item:last-child selector, which matches all the .todo-item elements since each is the only child of its host. Change by host(:last-child) > .todo-item. Similarly, replace .editing:last-child with host(:last-child) .editing in the LIT todoMVC CSS.

@lpardosixtosMs
Copy link
Contributor Author

@flashdesignory Can you take a look? Thanks!

Copy link
Contributor

@flashdesignory flashdesignory left a comment

Choose a reason for hiding this comment

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

approved, assuming it was also tested in the standalone versions.

@lpardosixtosMs
Copy link
Contributor Author

@flashdesignory would you mind merging it? I don't have write access.

approved, assuming it was also tested in the standalone versions.

Yes, this is a fix mainly for standalone versions:

Before:

image

After:

image

@flashdesignory flashdesignory merged commit b3ec8c7 into WebKit:main Aug 18, 2023
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

Successfully merging this pull request may close these issues.

2 participants