Skip to content

Commit

Permalink
refactor: remove not needed backslash in css literals (#7641)
Browse files Browse the repository at this point in the history
  • Loading branch information
web-padawan authored Aug 12, 2024
1 parent 1590387 commit 351ddd6
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 11 deletions.
10 changes: 5 additions & 5 deletions packages/notification/theme/lumo/vaadin-notification-styles.js
Original file line number Diff line number Diff line change
Expand Up @@ -46,25 +46,25 @@ registerStyles(
margin: var(--lumo-space-s) auto;
}
:host([slot\$='stretch']) {
:host([slot$='stretch']) {
margin: 0;
}
:host([slot\$='stretch']) [part='overlay'] {
:host([slot$='stretch']) [part='overlay'] {
border-radius: 0;
}
@media (min-width: 421px) {
:host(:not([slot\$='stretch'])) {
:host(:not([slot$='stretch'])) {
display: flex;
}
:host([slot\$='end']) {
:host([slot$='end']) {
justify-content: flex-end;
}
:host([slot^='middle']),
:host([slot\$='center']) {
:host([slot$='center']) {
display: flex;
justify-content: center;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,6 @@ const notificationCard = css`
background-color: var(--material-background-color);
border-radius: 4px;
box-shadow: var(--material-shadow-elevation-6dp);
padding: 14px 16px;
justify-content: stretch;
}
Expand All @@ -53,11 +52,11 @@ const notificationCard = css`
margin: -8px 0;
}
:host([slot\$='stretch']) {
:host([slot$='stretch']) {
margin: 0 -4px;
}
:host([slot\$='stretch']) [part='overlay'] {
:host([slot$='stretch']) [part='overlay'] {
border-radius: 0;
}
Expand All @@ -71,7 +70,7 @@ const notificationCard = css`
margin: auto;
}
:host([slot\$='stretch']) {
:host([slot$='stretch']) {
margin: 0 -12px;
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,14 +22,14 @@ const numberField = css`
padding: 0;
}
[part\$='button'] {
[part$='button'] {
cursor: pointer;
font-size: var(--lumo-icon-size-s);
width: 1.6em;
height: 1.6em;
}
[part\$='button']::before {
[part$='button']::before {
margin-top: 0.3em;
}
Expand Down

0 comments on commit 351ddd6

Please sign in to comment.