Skip to content

Commit 113b9ab

Browse files
committed
Bug 1857522 - Don't ignore pseudo-classes in max-nesting-depth limit. r=Gijs
As that allows you to get around the lint with :is() trivially. Differential Revision: https://phabricator.services.mozilla.com/D190311
1 parent f3e1e3f commit 113b9ab

File tree

5 files changed

+7
-6
lines changed

5 files changed

+7
-6
lines changed

.stylelintrc.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ module.exports = {
5656
"max-nesting-depth": [
5757
3,
5858
{
59-
ignore: ["blockless-at-rules", "pseudo-classes"],
59+
ignore: ["blockless-at-rules"],
6060
},
6161
],
6262

browser/components/newtab/content-src/asrouter/templates/SimpleBelowSearchSnippet/_SimpleBelowSearchSnippet.scss

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
/* stylelint-disable max-nesting-depth */
12

23
.below-search-snippet {
34
margin: 0 auto 16px;

browser/components/newtab/content-src/asrouter/templates/SubmitFormSnippet/_SubmitFormSnippet.scss

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
/* stylelint-disable max-nesting-depth */
2+
13
.SubmitFormSnippet {
24
flex-direction: column;
35
flex: 1 1 100%;

browser/components/pocket/content/panels/js/components/PopularTopics/PopularTopics.scss

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
/* stylelint-disable max-nesting-depth */
2+
13
.stp_popular_topics {
24
padding: 0;
35

browser/themes/shared/tabs.css

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -325,11 +325,7 @@
325325
stroke: transparent;
326326

327327
&:is([pinned], [sharing]):hover {
328-
background-color: var(--tab-icon-overlay-stroke, white);
329-
330-
#TabsToolbar[brighttext] & {
331-
background-color: var(--tab-icon-overlay-stroke, black);
332-
}
328+
background-color: var(--tab-icon-overlay-stroke, light-dark(white, black));
333329
}
334330
}
335331

0 commit comments

Comments
 (0)