Skip to content

Commit

Permalink
Fix :last-child item selector in todoMVC Web Components and LIT
Browse files Browse the repository at this point in the history
  • Loading branch information
lpardosixtosMs committed Aug 18, 2023
1 parent 5107c73 commit 3cdb965
Show file tree
Hide file tree
Showing 9 changed files with 27 additions and 27 deletions.
2 changes: 1 addition & 1 deletion resources/todomvc/architecture-examples/lit/dist/index.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ export class TodoItem extends LitElement {
display: none;
}
.editing:last-child {
:host(:last-child) .editing {
margin-bottom: -1px;
}
`,
Expand Down
8 changes: 4 additions & 4 deletions resources/todomvc/todomvc-css/dist/index.css
Original file line number Diff line number Diff line change
Expand Up @@ -314,17 +314,17 @@ but useful for people who use screen readers */
box-shadow: none !important;
}

:host(:last-child) > .todo-item {
border-bottom: none;
}

.todo-item {
position: relative;
font-size: 24px;
border-bottom: 1px solid #ededed;
height: 60px;
}

.todo-item:last-child {
border-bottom: none;
}

.todo-item.editing {
border-bottom: none;
padding: 0;
Expand Down
Loading

0 comments on commit 3cdb965

Please sign in to comment.