Skip to content

Commit ab530cd

Browse files
authored
chore: enable no-duplicate-selectors rule for stylelint (#9321)
1 parent 7c5aa02 commit ab530cd

File tree

2 files changed

+13
-17
lines changed

2 files changed

+13
-17
lines changed

.stylelintrc

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,5 +4,8 @@
44
],
55
"overrides": [
66
{ "files": ["**/*.js"], "customSyntax": "postcss-lit" }
7-
]
7+
],
8+
"rules": {
9+
"no-duplicate-selectors": true
10+
}
811
}

packages/dashboard/theme/lumo/vaadin-dashboard-widget-styles.js

Lines changed: 9 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -37,11 +37,6 @@ const dashboardWidgetAndSection = css`
3737
filter: var(--_widget-filter);
3838
}
3939
40-
:host([selected]) {
41-
opacity: 1;
42-
z-index: 1;
43-
}
44-
4540
:host([focused]) {
4641
z-index: 1;
4742
}
@@ -86,6 +81,8 @@ const dashboardWidgetAndSection = css`
8681
--_icon-color: var(--lumo-primary-text-color);
8782
}
8883
:host([selected]) {
84+
opacity: 1;
85+
z-index: 1;
8986
--_icon-color: var(--lumo-primary-text-color);
9087
}
9188
:host(:is([move-mode], [resize-mode])) {
@@ -257,6 +254,13 @@ const dashboardWidget = css`
257254
height: var(--lumo-size-s);
258255
padding-right: 0;
259256
padding-left: 0;
257+
border-bottom-left-radius: 0;
258+
border-bottom-right-radius: 0;
259+
}
260+
261+
[part~='resize-shrink-height-button']:not([hidden]) + [part~='resize-grow-height-button'] {
262+
border-top-left-radius: 0;
263+
border-top-right-radius: 0;
260264
}
261265
262266
[part~='resize-shrink-height-button'] + [part~='resize-grow-height-button'] {
@@ -295,17 +299,6 @@ const dashboardWidget = css`
295299
--icon: var(--lumo-icons-minus);
296300
}
297301
298-
[part~='resize-grow-height-button'],
299-
[part~='resize-shrink-height-button'] {
300-
border-bottom-left-radius: 0;
301-
border-bottom-right-radius: 0;
302-
}
303-
304-
[part~='resize-shrink-height-button']:not([hidden]) + [part~='resize-grow-height-button'] {
305-
border-top-left-radius: 0;
306-
border-top-right-radius: 0;
307-
}
308-
309302
/* Windows High Contrast Mode */
310303
@media (forced-colors: active) {
311304
:host {

0 commit comments

Comments
 (0)