Skip to content

Commit b39c6cc

Browse files
committed
Add comments for stylelint disable
1 parent 97a9798 commit b39c6cc

File tree

3 files changed

+6
-3
lines changed

3 files changed

+6
-3
lines changed

polaris-react/src/components/BulkActions/BulkActions.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ $bulk-actions-button-stacking-order: (
7070

7171
// We need the first item of button group on small screen to fill the space
7272
@media #{$p-breakpoints-sm-down} {
73-
// stylelint-disable-next-line, selector-max-combinators, selector-max-type
73+
// stylelint-disable-next-line selector-max-combinators, selector-max-type -- update button spacing on small screens
7474
> div > div:first-child {
7575
flex: 1 1 auto;
7676
}

polaris-react/src/components/ResourceItem/ResourceItem.scss

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929
background-color: var(--p-surface-hovered);
3030

3131
.Actions {
32-
/* stylelint-disable-next-line selector-max-combinators */
32+
// stylelint-disable-next-line selector-max-combinators -- show actions on hover
3333
> * {
3434
@include action-unhide;
3535
}
@@ -103,7 +103,7 @@
103103
}
104104

105105
.focused & {
106-
// stylelint-disable-next-line selector-max-combinators
106+
// stylelint-disable-next-line selector-max-combinators -- show actions on focus
107107
> * {
108108
@include action-unhide;
109109
}
@@ -123,6 +123,7 @@
123123
}
124124

125125
.ListItem {
126+
// stylelint-disable-next-line -- generated by polaris-migrator DO NOT COPY
126127
@include focus-ring($border-width: -1px);
127128

128129
.ListItem + & {

polaris-react/src/components/SkeletonPage/SkeletonPage.scss

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,10 @@ $primary-action-button-height: 36px;
44
$primary-action-button-width: 100px;
55

66
:root {
7+
// stylelint-disable -- use custom properties to set max width based on props
78
--pc-skeleton-page-max-width: 998px;
89
--pc-skeleton-page-max-width-narrow: 662px;
10+
// stylelint-enable
911
}
1012

1113
.Title {

0 commit comments

Comments
 (0)