Skip to content

Commit 0c0ed93

Browse files
committed
Add comments for stylelint disable
1 parent 7e5644c commit 0c0ed93

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
@@ -69,7 +69,7 @@ $bulk-actions-button-stacking-order: (
6969
max-width: 100%;
7070

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

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

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

3030
.Actions {
31-
/* stylelint-disable-next-line selector-max-combinators */
31+
// stylelint-disable-next-line selector-max-combinators -- show actions on hover
3232
> * {
3333
@include action-unhide;
3434
}
@@ -102,7 +102,7 @@
102102
}
103103

104104
.focused & {
105-
// stylelint-disable-next-line selector-max-combinators
105+
// stylelint-disable-next-line selector-max-combinators -- show actions on focus
106106
> * {
107107
@include action-unhide;
108108
}
@@ -122,6 +122,7 @@
122122
}
123123

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

127128
.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)