polaris_view_components 3.2.0 → 4.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (73) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +1 -1
  3. data/app/assets/fonts/OFL.txt +92 -0
  4. data/app/assets/fonts/ShopifyInterVariable-latin-ext.woff2 +0 -0
  5. data/app/assets/fonts/ShopifyInterVariable-latin.woff2 +0 -0
  6. data/app/assets/icons/polaris/AlertCircleFilledIcon.svg +1 -0
  7. data/app/assets/icons/polaris/CheckCircleFilledIcon.svg +1 -0
  8. data/app/assets/icons/polaris/InfoFilledIcon.svg +1 -0
  9. data/app/assets/javascripts/polaris_view_components/button_controller.js +6 -7
  10. data/app/assets/javascripts/polaris_view_components/dropzone_controller.js +2 -0
  11. data/app/assets/javascripts/polaris_view_components/index.js +2 -0
  12. data/app/assets/javascripts/polaris_view_components/popover_controller.js +33 -6
  13. data/app/assets/javascripts/polaris_view_components/tabs_controller.js +14 -0
  14. data/app/assets/javascripts/polaris_view_components.js +103 -7
  15. data/app/assets/stylesheets/polaris_view_components/action_list.pcss +19 -4
  16. data/app/assets/stylesheets/polaris_view_components/badge.pcss +75 -0
  17. data/app/assets/stylesheets/polaris_view_components/banner.pcss +132 -87
  18. data/app/assets/stylesheets/polaris_view_components/button.pcss +395 -61
  19. data/app/assets/stylesheets/polaris_view_components/callout_card.pcss +63 -2
  20. data/app/assets/stylesheets/polaris_view_components/card.pcss +130 -30
  21. data/app/assets/stylesheets/polaris_view_components/choice.pcss +80 -0
  22. data/app/assets/stylesheets/polaris_view_components/custom.pcss +6 -67
  23. data/app/assets/stylesheets/polaris_view_components/data_table.pcss +58 -2
  24. data/app/assets/stylesheets/polaris_view_components/description_list.pcss +34 -0
  25. data/app/assets/stylesheets/polaris_view_components/drop_zone.pcss +100 -0
  26. data/app/assets/stylesheets/polaris_view_components/fonts.pcss +27 -0
  27. data/app/assets/stylesheets/polaris_view_components/footer_help.pcss +24 -0
  28. data/app/assets/stylesheets/polaris_view_components/index_table.pcss +17 -2
  29. data/app/assets/stylesheets/polaris_view_components/media.pcss +126 -0
  30. data/app/assets/stylesheets/polaris_view_components/modal.pcss +115 -3
  31. data/app/assets/stylesheets/polaris_view_components/navigation.pcss +49 -0
  32. data/app/assets/stylesheets/polaris_view_components/navigation_list_component.pcss +73 -10
  33. data/app/assets/stylesheets/polaris_view_components/page.pcss +120 -10
  34. data/app/assets/stylesheets/polaris_view_components/pagination.pcss +6 -2
  35. data/app/assets/stylesheets/polaris_view_components/popover.pcss +13 -0
  36. data/app/assets/stylesheets/polaris_view_components/resource_list.pcss +100 -0
  37. data/app/assets/stylesheets/polaris_view_components/save_bar.pcss +35 -25
  38. data/app/assets/stylesheets/polaris_view_components/shopify_navigation.pcss +21 -18
  39. data/app/assets/stylesheets/polaris_view_components/tabs.pcss +69 -0
  40. data/app/assets/stylesheets/polaris_view_components/tag.pcss +45 -0
  41. data/app/assets/stylesheets/polaris_view_components/text_fields.pcss +226 -0
  42. data/app/assets/stylesheets/polaris_view_components/theme.pcss +386 -0
  43. data/app/assets/stylesheets/polaris_view_components/tooltip_component.pcss +7 -5
  44. data/app/assets/stylesheets/polaris_view_components/variables.pcss +1 -1
  45. data/app/assets/stylesheets/polaris_view_components.css +1766 -275
  46. data/app/assets/stylesheets/polaris_view_components.pcss +8 -0
  47. data/app/components/polaris/avatar_component.rb +1 -1
  48. data/app/components/polaris/banner_component.html.erb +27 -90
  49. data/app/components/polaris/banner_component.rb +4 -5
  50. data/app/components/polaris/button_component.html.erb +1 -9
  51. data/app/components/polaris/callout_card_component.html.erb +11 -7
  52. data/app/components/polaris/callout_card_component.rb +4 -3
  53. data/app/components/polaris/card/header_component.rb +1 -1
  54. data/app/components/polaris/card/section_component.html.erb +1 -1
  55. data/app/components/polaris/card/section_component.rb +2 -1
  56. data/app/components/polaris/card_component.html.erb +39 -37
  57. data/app/components/polaris/card_component.rb +3 -3
  58. data/app/components/polaris/checkbox_component.html.erb +2 -1
  59. data/app/components/polaris/checkbox_component.rb +0 -4
  60. data/app/components/polaris/dropzone_component.html.erb +12 -36
  61. data/app/components/polaris/headless_button.html.erb +1 -9
  62. data/app/components/polaris/headless_button.rb +13 -0
  63. data/app/components/polaris/modal_component.html.erb +6 -0
  64. data/app/components/polaris/page_component.html.erb +4 -4
  65. data/app/components/polaris/progress_bar_component.rb +4 -4
  66. data/app/components/polaris/resource_item/shortcut_actions_component.html.erb +6 -8
  67. data/app/components/polaris/resource_item/shortcut_actions_component.rb +5 -1
  68. data/app/components/polaris/resource_item_component.html.erb +4 -4
  69. data/app/components/polaris/resource_item_component.rb +4 -1
  70. data/app/components/polaris/spinner_component.html.erb +4 -9
  71. data/app/components/polaris/tabs_component.rb +2 -0
  72. data/lib/polaris/view_components/version.rb +1 -1
  73. metadata +18 -3
@@ -0,0 +1,126 @@
1
+ /* Avatar */
2
+ html[class~="Polaris-Summer-Editions-2023"] .Polaris-Avatar {
3
+ &.Polaris-Avatar--sizeExtraSmall {
4
+ border-radius: 0.375rem;
5
+ }
6
+
7
+ &.Polaris-Avatar--sizeSmall {
8
+ border-radius: 0.5rem;
9
+ }
10
+
11
+ &.Polaris-Avatar--sizeMedium {
12
+ border-radius: 0.5rem;
13
+ }
14
+
15
+ &.Polaris-Avatar--sizeLarge {
16
+ border-radius: 0.625rem;
17
+ }
18
+
19
+ &.Polaris-Avatar--shapeRound {
20
+ border-radius: var(--p-border-radius-full);
21
+ }
22
+
23
+ .Polaris-Avatar__Text {
24
+ font-weight: var(--p-font-weight-medium);
25
+ }
26
+
27
+ .Polaris-Avatar__Svg text {
28
+ font-size: 1rem;
29
+ }
30
+ }
31
+
32
+ /* Thumbnail */
33
+ html[class~="Polaris-Summer-Editions-2023"] .Polaris-Thumbnail {
34
+ &,
35
+ &::after {
36
+ border-radius: var(--p-border-radius-300);
37
+ }
38
+
39
+ &.Polaris-Thumbnail--sizeExtraSmall,
40
+ &.Polaris-Thumbnail--sizeExtraSmall::after {
41
+ border-radius: var(--p-border-radius-150);
42
+ }
43
+
44
+ &.Polaris-Thumbnail--sizeSmall,
45
+ &.Polaris-Thumbnail--sizeSmall::after {
46
+ border-radius: 0.625rem;
47
+ }
48
+ }
49
+
50
+ /* Progress bar */
51
+ html[class~="Polaris-Summer-Editions-2023"] .Polaris-ProgressBar {
52
+ --pc-progress-bar-background: var(--p-color-bg-surface-tertiary);
53
+ border-radius: var(--p-border-radius-full);
54
+
55
+ &.Polaris-ProgressBar--colorPrimary {
56
+ --pc-progress-bar-indicator: var(--p-color-bg-fill-brand);
57
+ }
58
+
59
+ .Polaris-ProgressBar__Indicator {
60
+ border-radius: var(--p-border-radius-full);
61
+ width: clamp(0%, calc(var(--pc-progress-bar-percent) * 100%), 100%);
62
+ transform: none;
63
+ transition: width var(--pc-progress-bar-duration) var(--p-motion-ease);
64
+ }
65
+
66
+ &.Polaris-ProgressBar--sizeSmall {
67
+ height: 0.25rem;
68
+ }
69
+
70
+ &.Polaris-ProgressBar--sizeMedium {
71
+ height: 0.375rem;
72
+ }
73
+
74
+ &.Polaris-ProgressBar--sizeLarge {
75
+ height: 0.5rem;
76
+ }
77
+
78
+ @media (prefers-reduced-motion: reduce) {
79
+ .Polaris-ProgressBar__Indicator { transition: none; }
80
+ }
81
+ }
82
+
83
+ /* Spinner: the web-component ring has a subdued track and a 40% foreground arc. */
84
+ html[class~="Polaris-Summer-Editions-2023"] .Polaris-Spinner {
85
+ display: inline-flex;
86
+ flex-shrink: 0;
87
+ vertical-align: middle;
88
+ opacity: 1;
89
+ transition: opacity 150ms allow-discrete;
90
+
91
+ svg {
92
+ display: block;
93
+ fill: none;
94
+ transform-origin: center;
95
+ animation: var(--p-motion-keyframes-spin) 500ms linear infinite;
96
+ }
97
+
98
+ .Polaris-Spinner__Track { stroke: rgba(0, 0, 0, 0.18); }
99
+
100
+ .Polaris-Spinner__Indicator {
101
+ stroke: #1b1b1b;
102
+ stroke-linecap: round;
103
+ stroke-dasharray: 4, 6;
104
+ }
105
+
106
+ @starting-style { opacity: 0; }
107
+
108
+ @media (prefers-reduced-motion: reduce) {
109
+ transition: none;
110
+ svg { animation: none; }
111
+ }
112
+ }
113
+
114
+ /* Skeletons */
115
+ html[class~="Polaris-Summer-Editions-2023"] {
116
+ .Polaris-SkeletonBodyText,
117
+ .Polaris-SkeletonDisplayText__DisplayText,
118
+ .Polaris-SkeletonThumbnail {
119
+ border-radius: var(--p-border-radius-200);
120
+ }
121
+
122
+ .Polaris-SkeletonBodyText::after,
123
+ .Polaris-SkeletonDisplayText__DisplayText::after {
124
+ border-radius: var(--p-border-radius-200);
125
+ }
126
+ }
@@ -1,5 +1,117 @@
1
- html[class~="Polaris-Summer-Editions-2023"] .Polaris-Modal-CloseButton {
2
- &:hover {
3
- background: var(--p-color-bg-fill-tertiary);
1
+ html[class~="Polaris-Summer-Editions-2023"] {
2
+ .Polaris-Modal-Dialog__Modal {
3
+ box-shadow: var(--p-shadow-dialog);
4
+ }
5
+
6
+ @media (min-width: 48em), (pointer: fine) {
7
+ .Polaris-Modal-Dialog__Container { justify-content: center; }
8
+
9
+ .Polaris-Modal-Dialog__Modal {
10
+ position: relative;
11
+ width: 38.75rem;
12
+ max-width: calc(100vw - var(--p-space-800));
13
+ max-height: calc(100svh - 3.75rem);
14
+ margin: 0 auto;
15
+ border-radius: var(--p-border-radius-dialog);
16
+
17
+ &.Polaris-Modal-Dialog--sizeSmall { width: 23.75rem; max-width: calc(100vw - var(--p-space-800)); }
18
+ &.Polaris-Modal-Dialog--sizeLarge { width: 61.25rem; max-width: calc(100vw - var(--p-space-800)); }
19
+ /* clamp() instead of min(), which LibSass rejects when apps import this CSS from Sass. */
20
+ &.Polaris-Modal-Dialog--limitHeight { max-height: clamp(0px, calc(100svh - 3.75rem), 37.5rem); }
21
+ }
22
+ }
23
+
24
+ .Polaris-Modal-Header {
25
+ --pc-box-background: transparent !important;
26
+ --pc-box-border-block-end-width: 0 !important;
27
+ --pc-box-padding-block-start-xs: var(--p-space-400) !important;
28
+ --pc-box-padding-block-end-xs: var(--p-space-400) !important;
29
+ --pc-box-padding-inline-start-xs: var(--p-space-500) !important;
30
+
31
+ .Polaris-Text--root {
32
+ font-size: 0.9375rem;
33
+ font-weight: var(--p-font-weight-medium);
34
+ line-height: 1.375rem;
35
+ letter-spacing: -0.02em;
36
+ }
37
+ }
38
+
39
+ .Polaris-Modal__Body { min-height: 0; }
40
+
41
+ .Polaris-Modal-Section {
42
+ border-bottom: none;
43
+
44
+ > .Polaris-Box { padding: var(--p-space-100) var(--p-space-500); }
45
+ + .Polaris-Modal-Section { margin-top: var(--p-space-200); }
46
+ }
47
+
48
+ .Polaris-Modal-Dialog__Modal:not(:has(> .Polaris-Modal-Footer)) .Polaris-Modal-Section:last-child > .Polaris-Box {
49
+ padding-bottom: var(--p-space-400);
50
+ }
51
+
52
+ .Polaris-Modal-Dialog__Modal:not(:has(> .Polaris-Modal-Header)) .Polaris-Modal-Section:first-of-type > .Polaris-Box {
53
+ padding-top: var(--p-space-400);
54
+ padding-right: var(--p-space-1200);
55
+ }
56
+
57
+ .Polaris-Modal-Footer {
58
+ flex-shrink: 0;
59
+
60
+ > .Polaris-Box {
61
+ --pc-box-border-block-start-width: 0 !important;
62
+ padding-top: var(--p-space-300);
63
+ }
64
+
65
+ .Polaris-LegacyStack,
66
+ .Polaris-ButtonGroup { margin: 0; }
67
+
68
+ .Polaris-LegacyStack__Item,
69
+ .Polaris-ButtonGroup__Item { margin: 0; }
70
+
71
+ .Polaris-ButtonGroup { gap: var(--p-space-200); }
72
+
73
+ .Polaris-Button:not(.Polaris-Button--primary, .Polaris-Button--plain, .Polaris-Button--destructive, .Polaris-Button--disabled) {
74
+ --pc-button-bg: var(--p-color-bg-surface);
75
+ --pc-button-bg-hover: var(--p-color-bg-surface-hover);
76
+ --pc-button-bg-active: var(--p-color-bg-surface-hover);
77
+ --pc-button-shadow: var(--p-shadow-page-button);
78
+ }
79
+ }
80
+
81
+ .Polaris-Modal-CloseButton {
82
+ display: flex;
83
+ align-items: center;
84
+ justify-content: center;
85
+ width: 1.75rem;
86
+ height: 1.75rem;
87
+ padding: var(--p-space-100);
88
+ margin: 0;
89
+ border-radius: var(--p-border-radius-full);
90
+ background: var(--p-color-bg-surface);
91
+ box-shadow: var(--p-shadow-page-button);
92
+
93
+ &:hover,
94
+ &:active { background: var(--p-color-bg-surface-hover); }
95
+
96
+ &::after { border-radius: var(--p-border-radius-full); }
97
+ }
98
+
99
+ .Polaris-Modal-Dialog__Modal > .Polaris-Modal-CloseButton {
100
+ position: absolute;
101
+ top: var(--p-space-200);
102
+ right: var(--p-space-200);
103
+ z-index: 1;
104
+ }
105
+
106
+ @media (max-width: 47.9975em) and (pointer: coarse) {
107
+ .Polaris-Modal-Footer {
108
+ .Polaris-LegacyStack__Item,
109
+ .Polaris-ButtonGroup,
110
+ .Polaris-ButtonGroup__Item,
111
+ .Polaris-Button { width: 100%; }
112
+
113
+ .Polaris-LegacyStack__Item--fill { display: none; }
114
+ .Polaris-ButtonGroup { flex-direction: column-reverse; }
115
+ }
4
116
  }
5
117
  }
@@ -1,11 +1,60 @@
1
+ /* Navigation uses the dark sidebar from the Shopify admin */
1
2
  html[class~="Polaris-Summer-Editions-2023"] .Polaris-Navigation {
3
+ --p-color-text: #e3e3e3;
4
+ --p-color-text-secondary: #b5b5b5;
5
+ --p-color-text-disabled: #8a8a8a;
6
+ --p-color-icon: #e3e3e3;
7
+ --p-color-icon-hover: #fff;
8
+ --p-color-icon-secondary: #b5b5b5;
9
+ --p-color-icon-disabled: #8a8a8a;
10
+ --p-color-bg-surface-secondary-hover: rgba(255, 255, 255, 0.06);
11
+ --p-color-bg-surface-secondary-active: rgba(255, 255, 255, 0.11);
12
+ --p-color-bg-surface-selected: rgba(255, 255, 255, 0.11);
13
+ --p-color-bg-surface-tertiary: rgba(255, 255, 255, 0.06);
14
+ --p-color-nav-bg-surface-selected: rgba(255, 255, 255, 0.11);
15
+ background-color: #1a1a1a;
16
+ color: var(--p-color-text);
17
+
2
18
  .Polaris-Navigation__Item {
19
+ border-radius: var(--p-border-radius-200);
20
+
3
21
  &.Polaris-Navigation__Item--selected {
4
22
  background-color: var(--p-color-nav-bg-surface-selected) !important;
23
+ color: #fff;
24
+
25
+ .Polaris-Navigation__Text {
26
+ color: #fff;
27
+ font-weight: var(--p-font-weight-medium);
28
+ }
29
+
30
+ svg {
31
+ fill: #fff;
32
+ }
5
33
  }
6
34
 
7
35
  &:hover {
8
36
  background-color: var(--p-color-bg-surface-tertiary);
9
37
  }
10
38
  }
39
+
40
+ .Polaris-Navigation__ItemInnerWrapper {
41
+ border-radius: var(--p-border-radius-200);
42
+ }
43
+
44
+ .Polaris-Navigation__Icon svg {
45
+ fill: var(--p-color-icon);
46
+ }
47
+
48
+ .Polaris-Navigation__SectionHeading .Polaris-Navigation__Text {
49
+ color: var(--p-color-text-secondary);
50
+ }
51
+
52
+ .Polaris-Navigation__SecondaryAction svg,
53
+ .Polaris-Navigation__SectionHeading svg {
54
+ fill: var(--p-color-icon-secondary);
55
+ }
56
+
57
+ .Polaris-Navigation__SecondaryAction:hover {
58
+ background-color: var(--p-color-bg-surface-secondary-hover);
59
+ }
11
60
  }
@@ -1,22 +1,85 @@
1
- .NavigationList {
2
- padding-top: var(--p-space-3);
3
- padding-bottom: var(--p-space-3);
1
+ html[class~="Polaris-Summer-Editions-2023"] .NavigationList {
2
+ padding: 0;
3
+
4
+ > .Polaris-LegacyCard__Surface { padding: var(--p-space-200); }
4
5
 
5
6
  ul {
6
7
  margin: 0;
7
8
  padding-inline-start: 0;
9
+ list-style: none;
8
10
  }
9
11
 
10
- .Polaris-Navigation__Item {
11
- padding-bottom: var(--p-space-05);
12
- padding-top: var(--p-space-05);
12
+ .Polaris-Navigation__ItemWrapper { padding: 0; }
13
+
14
+ .Polaris-Navigation__ItemInnerWrapper {
15
+ border-radius: var(--p-border-radius-control);
16
+ background: transparent;
13
17
 
14
- &.Polaris-Navigation__Item--selected {
15
- background-color: var(--p-color-bg-surface-tertiary-hover);
18
+ &:hover { background: var(--p-color-bg-surface-hover); }
19
+ &:active { background: var(--p-color-bg-surface-active); }
20
+
21
+ &.Polaris-Navigation__ItemInnerWrapper--selected {
22
+ background: var(--p-color-bg-fill-secondary);
16
23
  }
17
24
 
18
- &:hover {
19
- background-color: var(--p-color-bg-surface-tertiary);
25
+ &.Polaris-Navigation__ItemInnerDisabled { background: transparent; }
26
+ }
27
+
28
+ .Polaris-Navigation__Item {
29
+ min-height: 2rem;
30
+ align-items: center;
31
+ gap: var(--p-space-200);
32
+ padding: var(--p-space-150) var(--p-space-200);
33
+ border-radius: var(--p-border-radius-control);
34
+ background: transparent;
35
+ color: var(--p-color-text);
36
+ font-size: var(--p-font-size-325);
37
+ line-height: var(--p-font-line-height-500);
38
+ font-weight: var(--p-font-weight-regular);
39
+
40
+ &:hover,
41
+ &:active,
42
+ &:focus-visible { background: transparent; color: var(--p-color-text); }
43
+
44
+ &:focus-visible {
45
+ outline: var(--p-border-width-050) solid var(--p-color-border-focus);
46
+ outline-offset: var(--p-space-025);
20
47
  }
48
+
49
+ &::before,
50
+ &::after { content: none; }
51
+
52
+ &.Polaris-Navigation__Item--disabled { color: var(--p-color-text-disabled); }
53
+ }
54
+
55
+ .Polaris-Navigation__Text {
56
+ min-width: 0;
57
+ margin: 0;
58
+ font-size: inherit;
59
+ font-weight: var(--p-font-weight-regular);
60
+ line-height: inherit;
61
+ overflow-wrap: anywhere;
62
+ }
63
+
64
+ .Polaris-Navigation__Item--selected .Polaris-Navigation__Text {
65
+ font-weight: var(--p-font-weight-medium);
66
+ }
67
+
68
+ .Polaris-Navigation__Icon {
69
+ margin: 0;
70
+ flex: 0 0 var(--p-space-500);
71
+ width: var(--p-space-500);
72
+ height: var(--p-space-500);
73
+
74
+ svg { fill: var(--p-color-icon-secondary); }
75
+ }
76
+
77
+ .Polaris-Navigation__Item--selected .Polaris-Navigation__Icon svg { fill: var(--p-color-icon); }
78
+ .Polaris-Navigation__Item--disabled .Polaris-Navigation__Icon svg { fill: var(--p-color-icon-disabled); }
79
+
80
+ .Polaris-Navigation__Badge {
81
+ margin: 0 0 0 auto;
82
+ flex-shrink: 0;
83
+ align-self: center;
21
84
  }
22
85
  }
@@ -1,20 +1,130 @@
1
1
  html[class~="Polaris-Summer-Editions-2023"] {
2
2
  .Polaris-Page-Header {
3
- font-weight: var(--p-font-weight-bold);
3
+ font-weight: var(--p-font-weight-medium);
4
4
  }
5
5
 
6
- .Polaris-Page-Header--smallTitle .Polaris-Header-Title {
7
- font-size: var(--p-font-size-300);
8
- line-height: var(--p-font-line-height-400);
6
+ .Polaris-Header-Title {
7
+ font-size: 1.625rem;
8
+ font-weight: var(--p-font-weight-medium);
9
+ line-height: var(--p-font-line-height-800);
10
+ letter-spacing: -0.02em;
9
11
  }
10
12
 
11
- .Polaris-Page-Header--mediumTitle .Polaris-Header-Title {
12
- font-size: var(--p-font-size-400);
13
- line-height: var(--p-font-line-height-500);
13
+ .Polaris-Page-Header--smallTitle .Polaris-Header-Title,
14
+ .Polaris-Page-Header--longTitle .Polaris-Header-Title {
15
+ font-size: 1.375rem;
16
+ line-height: var(--p-font-line-height-700);
14
17
  }
15
18
 
16
- .Polaris-Page-Header--largeTitle .Polaris-Header-Title {
17
- font-size: var(--p-font-size-500);
18
- line-height: var(--p-font-line-height-600);
19
+ .Polaris-Header-Title__SubTitle {
20
+ color: var(--p-color-text-secondary);
21
+ }
22
+
23
+ /* Keeps the header the same height with or without a title badge. */
24
+ .Polaris-Header-Title__TitleWithMetadataWrapper {
25
+ padding-block: 0;
26
+ }
27
+
28
+ /* Centers the 28px back button on the 32px title line. It can't center in the
29
+ row, which a subtitle makes taller. Phones put the button on its own row. */
30
+ @media (min-width: 30.625em) {
31
+ .Polaris-Page-Header--mediumTitle .Polaris-Page-Header__BreadcrumbWrapper {
32
+ margin-top: var(--p-space-050);
33
+ }
34
+ }
35
+
36
+ /* Back button */
37
+ .Polaris-Page-Header__BreadcrumbWrapper :is(a, button) {
38
+ border-radius: var(--p-border-radius-full);
39
+ background-color: var(--p-color-bg-surface);
40
+ box-shadow: var(--p-shadow-page-button) !important;
41
+
42
+ &:is(:hover, :focus-visible) {
43
+ background-color: var(--p-color-bg-surface-hover);
44
+ }
45
+
46
+ &:active {
47
+ background-color: var(--p-color-bg-surface-active);
48
+ box-shadow: var(--p-shadow-page-button) !important;
49
+ }
50
+ }
51
+
52
+ /* Style header buttons and popover activators without affecting menu items. */
53
+ .Polaris-ActionMenu-SecondaryAction > .Polaris-Button,
54
+ .Polaris-ActionMenu-SecondaryAction > [data-controller~='polaris-popover'] > [data-polaris-popover-target='activator'] > .Polaris-Button {
55
+ border-radius: var(--p-border-radius-full) !important;
56
+ background-color: var(--p-color-bg-surface) !important;
57
+ box-shadow: var(--p-shadow-page-button) !important;
58
+
59
+ &:not(.Polaris-Button--disabled) {
60
+ &:is(:hover, :focus) {
61
+ background-color: var(--p-color-bg-surface-hover) !important;
62
+ box-shadow: var(--p-shadow-page-button) !important;
63
+ }
64
+
65
+ &:active {
66
+ background-color: var(--p-color-bg-surface-active) !important;
67
+ box-shadow: var(--p-shadow-page-button) !important;
68
+ }
69
+ }
70
+
71
+ &.Polaris-Button--disabled {
72
+ color: var(--p-color-text-disabled);
73
+
74
+ svg { fill: var(--p-color-icon-disabled); }
75
+ }
76
+ }
77
+
78
+ .Polaris-ActionMenu-SecondaryAction--destructive > .Polaris-Button:not(.Polaris-Button--disabled) {
79
+ color: #7e100c !important;
80
+
81
+ svg {
82
+ fill: currentColor;
83
+ }
84
+ }
85
+
86
+ .Polaris-ActionMenu-RollupActions__RollupActivator > [data-controller~='polaris-popover'] > [data-polaris-popover-target='activator'] > .Polaris-Button {
87
+ border-radius: var(--p-border-radius-full);
88
+ background: var(--p-color-bg-surface);
89
+ box-shadow: var(--p-shadow-page-button);
90
+
91
+ &:hover,
92
+ &:focus:not(:active) {
93
+ background: var(--p-color-bg-surface-hover);
94
+ }
95
+
96
+ &:active {
97
+ background: var(--p-color-bg-surface-active);
98
+ }
99
+ }
100
+
101
+ .Polaris-Page-Header__PaginationWrapper .Polaris-ButtonGroup {
102
+ flex-wrap: nowrap;
103
+ margin: 0;
104
+ gap: var(--p-space-100);
105
+
106
+ .Polaris-ButtonGroup__Item {
107
+ margin: 0;
108
+ }
109
+
110
+ .Polaris-Button,
111
+ .Polaris-Button::before,
112
+ .Polaris-Button::after {
113
+ border-radius: var(--p-border-radius-full) !important;
114
+ }
115
+
116
+ .Polaris-Button,
117
+ .Polaris-Button--disabled {
118
+ --pc-button-bg: var(--p-color-bg-surface);
119
+ --pc-button-bg-hover: var(--p-color-bg-surface-hover);
120
+ --pc-button-bg-active: var(--p-color-bg-surface-active);
121
+ --pc-button-shadow: var(--p-shadow-page-button);
122
+ background: var(--pc-button-bg) !important;
123
+ box-shadow: var(--pc-button-shadow) !important;
124
+ }
125
+
126
+ .Polaris-Button:not(.Polaris-Button--disabled):hover {
127
+ background: var(--pc-button-bg-hover) !important;
128
+ }
19
129
  }
20
130
  }
@@ -4,10 +4,14 @@ html[class~="Polaris-Summer-Editions-2023"] [aria-label='Pagination'] {
4
4
  box-shadow: none;
5
5
 
6
6
  &:not([disabled]) {
7
- background-color: var(--p-color-bg-fill-tertiary);
7
+ background-color: var(--p-color-bg-fill-secondary);
8
8
 
9
9
  &:hover {
10
- background-color: var(--p-color-bg-fill-tertiary-hover);
10
+ background-color: var(--p-color-bg-fill-secondary-hover);
11
+ }
12
+
13
+ &:active {
14
+ background-color: var(--p-color-bg-fill-secondary-active);
11
15
  }
12
16
  }
13
17
  }
@@ -1,4 +1,17 @@
1
1
  html[class~="Polaris-Summer-Editions-2023"] .Polaris-Popover {
2
+ border: none;
3
+ border-radius: var(--p-border-radius-popover);
4
+ box-shadow: var(--p-shadow-popover);
5
+
6
+ &::before {
7
+ content: none;
8
+ }
9
+
10
+ .Polaris-Popover__ContentContainer,
11
+ .Polaris-Popover__Content {
12
+ border-radius: var(--p-border-radius-popover);
13
+ }
14
+
2
15
  .Polaris-Popover__Content .Polaris-Popover__Pane:first-child > .Polaris-Popover__Section > .Polaris-Box {
3
16
  padding: var(--p-space-300) var(--p-space-400) var(--p-space-100);
4
17
  }
@@ -0,0 +1,100 @@
1
+ /* Resource-list composition: compact rows within the enclosing section surface. */
2
+ html[class~="Polaris-Summer-Editions-2023"] {
3
+ .Polaris-LegacyCard__Surface > .Polaris-ResourceList__ResourceListWrapper {
4
+ border-radius: inherit;
5
+ }
6
+
7
+ .Polaris-ResourceList__ResourceListWrapper {
8
+ & > .Polaris-ResourceList:first-child { border-top-left-radius: inherit; border-top-right-radius: inherit; }
9
+ & > .Polaris-ResourceList:last-child { border-bottom-left-radius: inherit; border-bottom-right-radius: inherit; }
10
+ }
11
+
12
+ .Polaris-ResourceList {
13
+ & > .Polaris-ResourceItem__ListItem:first-child { border-top-left-radius: inherit; border-top-right-radius: inherit; }
14
+ & > .Polaris-ResourceItem__ListItem:last-child { border-bottom-left-radius: inherit; border-bottom-right-radius: inherit; }
15
+ }
16
+
17
+ .Polaris-ResourceItem__ItemWrapper,
18
+ .Polaris-ResourceItem { border-radius: inherit; }
19
+
20
+ .Polaris-ResourceItem {
21
+ &:hover { background: var(--p-color-bg-surface-hover); }
22
+ &:active { background: var(--p-color-bg-surface-active); }
23
+
24
+ &--selected { background: var(--p-color-bg-surface-selected); }
25
+ &--selected:hover,
26
+ &--selected:active { background: var(--p-color-bg-surface-secondary-selected); }
27
+
28
+ h3,
29
+ h3 .Polaris-Text--semibold {
30
+ font-size: 0.8125rem;
31
+ line-height: 1.25rem;
32
+ font-weight: var(--p-font-weight-medium);
33
+ }
34
+ }
35
+
36
+ .Polaris-ResourceItem__Container {
37
+ min-width: 0;
38
+ overflow-wrap: anywhere;
39
+ }
40
+
41
+ .Polaris-ResourceItem__ListItem:has(.Polaris-ResourceItem__Link:focus-visible)::after {
42
+ z-index: 3;
43
+ border-radius: inherit;
44
+ box-shadow: inset 0 0 0 2px var(--p-color-border-focus);
45
+ }
46
+
47
+ .Polaris-ResourceList__FiltersWrapper { padding: var(--p-space-400); }
48
+
49
+ .Polaris-ResourceList__HeaderOuterWrapper { border-radius: inherit; }
50
+
51
+ .Polaris-ResourceList__HeaderWrapper {
52
+ min-height: 3rem;
53
+ padding: var(--p-space-200) var(--p-space-400);
54
+ border-radius: inherit;
55
+ }
56
+
57
+ .Polaris-ResourceList__HeaderContentWrapper {
58
+ position: static;
59
+ min-width: 0;
60
+ min-height: 2rem;
61
+ }
62
+
63
+ .Polaris-ResourceList__HeaderTitleWrapper { white-space: normal; }
64
+
65
+ .Polaris-ResourceItem__Actions {
66
+ display: flex;
67
+ align-items: center;
68
+ opacity: 0;
69
+ pointer-events: none;
70
+
71
+ & > * { clip: auto; overflow: visible; }
72
+ }
73
+
74
+ .Polaris-ResourceItem:hover .Polaris-ResourceItem__Actions,
75
+ .Polaris-ResourceItem:focus-within .Polaris-ResourceItem__Actions,
76
+ .Polaris-ResourceItem--persistActions .Polaris-ResourceItem__Actions {
77
+ opacity: 1;
78
+ pointer-events: auto;
79
+ }
80
+
81
+ .Polaris-ResourceItem__Disclosure {
82
+ display: none;
83
+
84
+ .Polaris-Button--iconOnly {
85
+ width: 1.75rem;
86
+ height: 1.75rem;
87
+ padding: var(--p-space-100);
88
+ }
89
+ }
90
+
91
+ @media (max-width: 46.5em), (hover: none) {
92
+ .Polaris-ResourceItem__Actions { display: none; }
93
+ .Polaris-ResourceItem__Disclosure { display: flex; align-items: center; }
94
+ }
95
+
96
+ @media (min-width: 48.0625em) and (max-width: 61.5em) {
97
+ [data-has-navigation] .Polaris-ResourceItem__Actions { display: none; }
98
+ [data-has-navigation] .Polaris-ResourceItem__Disclosure { display: flex; align-items: center; }
99
+ }
100
+ }