polaris_view_components 3.2.1 → 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
@@ -1,41 +1,42 @@
1
1
  html[class~="Polaris-Summer-Editions-2023"] .Polaris-Frame-ContextualSaveBar .Polaris-Frame-ContextualSaveBar__ActionContainer .Polaris-Button {
2
- --pc-color-text: var(--p-color-text-inverse);
3
- --pc-button-text: var(--p-color-text-inverse);
4
- --pc-button-color: var(--p-color-bg-fill-inverse);
5
- --pc-button-color-hover: var(--p-color-bg-fill-inverse-hover);
6
- --pc-button-color-active: var(--p-color-bg-fill-inverse-active);
7
- --pc-button-color-depressed: var(--p-color-bg-fill-inverse-hover);
8
- --pc-button-color-disabled: var(--pc-button-bg);
9
- background: var(--p-color-bg-fill-inverse);
2
+ --pc-button-bg: rgba(255, 255, 255, 0.12);
3
+ --pc-button-bg-hover: rgba(255, 255, 255, 0.18);
4
+ --pc-button-bg-active: rgba(255, 255, 255, 0.24);
5
+ --pc-button-fg: #fff;
6
+ --pc-button-fg-hover: #fff;
7
+ --pc-button-icon: #fff;
8
+ --pc-button-shadow: none;
9
+ background: var(--pc-button-bg);
10
10
  box-shadow: none;
11
11
 
12
+ &::before,
13
+ &::after {
14
+ box-shadow: none;
15
+ }
16
+
12
17
  &:hover {
13
- background: var(--p-color-bg-fill-inverse-hover);
14
- color: var(--p-color-text-inverse);
18
+ background: var(--pc-button-bg-hover);
19
+ color: var(--pc-button-fg-hover);
15
20
  box-shadow: none;
16
21
  }
17
22
 
18
23
  &.Polaris-Button--primary {
19
- --pc-button-color-hover: var(--p-color-bg-fill-hover);
20
- --pc-button-color-active: var(--p-color-bg-fill-active);
21
- --pc-button-color-depressed: var(--p-color-bg-fill-hover);
22
- --pc-button-color-disabled: var(--pc-button-bg);
23
- color: #303030;
24
- background: var(--p-color-bg-fill);
25
- box-shadow: 0 0.0625rem 0 0 hsla(0, 0%, 100%, .48) inset, -0.0625rem 0 0 0 hsla(0, 0%, 100%, .2) inset, 0.0625rem 0 0 0 hsla(0, 0%, 100%, .2) inset, 0 -0.09375rem 0 0 rgba(0, 0, 0, .25) inset;
24
+ --pc-button-bg: #fff;
25
+ --pc-button-bg-hover: #f2f2f2;
26
+ --pc-button-bg-active: #ebebeb;
27
+ --pc-button-fg: #101010;
28
+ --pc-button-fg-hover: #101010;
29
+ --pc-button-icon: #101010;
30
+ background: var(--pc-button-bg);
31
+ color: var(--pc-button-fg);
26
32
 
27
33
  &:hover {
28
- background: var(--p-color-bg-fill-hover);
29
- }
30
-
31
- &:before,
32
- &:after {
33
- box-shadow: none;
34
+ background: var(--pc-button-bg-hover);
34
35
  }
35
36
 
36
37
  &.Polaris-Button--disabled {
37
- background: #616161;
38
- color: #303030;
38
+ background: rgba(255, 255, 255, 0.24);
39
+ color: rgba(255, 255, 255, 0.5);
39
40
  box-shadow: none;
40
41
  -webkit-user-select: none;
41
42
  -moz-user-select: none;
@@ -44,3 +45,12 @@ html[class~="Polaris-Summer-Editions-2023"] .Polaris-Frame-ContextualSaveBar .Po
44
45
  }
45
46
  }
46
47
  }
48
+
49
+ html[class~="Polaris-Summer-Editions-2023"] .Polaris-Frame-Toast {
50
+ border-radius: var(--p-border-radius-300);
51
+ box-shadow: var(--p-shadow-toast, var(--p-shadow-lg));
52
+
53
+ &::before {
54
+ content: none;
55
+ }
56
+ }
@@ -1,7 +1,7 @@
1
1
  .shp-Navigation {
2
2
  margin: 0 auto;
3
3
  padding: 0 20px;
4
- border-bottom: 1px solid var(--p-color-border);
4
+ border-bottom: 1px solid var(--p-color-border-secondary);
5
5
  }
6
6
 
7
7
  @media (max-width: 48.0625em) and (min-width: 30.625em),(min-width: 45.625em) {
@@ -36,8 +36,9 @@
36
36
 
37
37
  .shp-Navigation_Items {
38
38
  display: flex;
39
+ gap: 4px;
39
40
  margin: 0;
40
- padding: 0 2px;
41
+ padding: 8px 2px;
41
42
  list-style: none
42
43
  }
43
44
 
@@ -67,9 +68,7 @@
67
68
  justify-content: center;
68
69
  width: 100%;
69
70
  min-width: 100%;
70
- margin-top: 1px;
71
- margin-bottom: -1px;
72
- padding: 0 16px;
71
+ padding: 0;
73
72
  outline: none;
74
73
  text-align: center;
75
74
  white-space: nowrap;
@@ -85,6 +84,11 @@
85
84
  outline: none;
86
85
  }
87
86
 
87
+ .shp-Navigation_Link:focus-visible .shp-Navigation_LinkText {
88
+ outline: var(--p-border-width-050) solid var(--p-color-border-focus);
89
+ outline-offset: var(--p-space-025);
90
+ }
91
+
88
92
  @media (min-width: 40em) {
89
93
  .shp-Navigation_Link {
90
94
  font-size: 14px;
@@ -96,33 +100,32 @@
96
100
  }
97
101
 
98
102
  .shp-Navigation_Link:hover .shp-Navigation_LinkText {
99
- font-weight: 400;
100
103
  color: var(--p-color-text);
101
104
  text-decoration: none;
102
- border-bottom: 3px solid var(--p-color-bg-fill-tertiary-hover);
105
+ background-color: rgba(0, 0, 0, 0.05);
103
106
  }
104
107
 
105
108
  .shp-Navigation_Link:focus .shp-Navigation_LinkText {
106
- font-weight: 400;
107
109
  color: var(--p-color-text);
108
110
  }
109
111
 
110
- .shp-Navigation_LinkText {
111
- padding: 16px 0 13px 0;
112
- border-bottom: 3px solid transparent;
113
- }
114
-
115
112
  .shp-Navigation_LinkText {
116
113
  display: block;
114
+ padding: 6px 12px;
115
+ border-radius: 9999px;
116
+ font-size: 13px;
117
+ font-weight: 500;
118
+ line-height: 20px;
119
+ letter-spacing: -0.01em;
117
120
  }
118
121
 
119
- [aria-selected='true'],
122
+ .shp-Navigation_Link[aria-selected='true'],
120
123
  .shp-Navigation_Link:focus .shp-Navigation_LinkText {
121
- font-weight: 400;
122
124
  color: var(--p-color-text);
123
125
  }
124
126
 
125
- [aria-selected='true'] .shp-Navigation_LinkText {
126
- color: var(--p-color-text-primary);
127
- border-bottom: 3px solid var(--p-color-bg-primary);
127
+ [aria-selected='true'] .shp-Navigation_LinkText,
128
+ [aria-selected='true']:hover .shp-Navigation_LinkText {
129
+ color: var(--p-color-text);
130
+ background-color: var(--p-color-bg-fill-transparent-hover);
128
131
  }
@@ -6,7 +6,76 @@ html[class~="Polaris-Summer-Editions-2023"] .Polaris-LegacyTabs__Wrapper {
6
6
  }
7
7
  }
8
8
 
9
+ /* Legacy tabs are displayed as pills */
10
+ html[class~="Polaris-Summer-Editions-2023"] .Polaris-LegacyTabs {
11
+ gap: var(--p-space-050);
12
+
13
+ /* Tabs that don't fit scroll in one row instead of wrapping. The inline padding keeps focus rings visible. */
14
+ flex-wrap: nowrap;
15
+ overflow-x: auto;
16
+ scrollbar-width: thin;
17
+ padding-inline: var(--p-space-050);
18
+ margin-inline: calc(var(--p-space-050) * -1);
19
+
20
+ /* Even 6px around the pills, like the index tabs in the admin. */
21
+ .Polaris-LegacyTabs__Tab {
22
+ margin: 0;
23
+ padding: var(--p-space-150) 0;
24
+ }
25
+
26
+ .Polaris-LegacyTabs__Title {
27
+ min-height: 1.75rem;
28
+ padding: var(--p-space-150) var(--p-space-300);
29
+ border-radius: var(--p-border-radius-full);
30
+ color: var(--p-color-text);
31
+ font-size: var(--p-font-size-300);
32
+ font-weight: var(--p-font-weight-medium);
33
+ line-height: var(--p-font-line-height-400);
34
+
35
+ &::before {
36
+ content: none;
37
+ }
38
+ }
39
+
40
+ .Polaris-LegacyTabs__Tab:hover .Polaris-LegacyTabs__Title,
41
+ .Polaris-LegacyTabs__Tab:focus-visible .Polaris-LegacyTabs__Title {
42
+ background-color: rgba(0, 0, 0, 0.05);
43
+ color: var(--p-color-text);
44
+ font-weight: var(--p-font-weight-medium);
45
+ }
46
+
47
+ .Polaris-LegacyTabs__Tab--selected .Polaris-LegacyTabs__Title,
48
+ .Polaris-LegacyTabs__Tab--selected:hover .Polaris-LegacyTabs__Title {
49
+ background-color: var(--p-color-bg-fill-transparent-hover);
50
+ color: var(--p-color-text);
51
+ }
52
+
53
+ .Polaris-LegacyTabs__Tab:active .Polaris-LegacyTabs__Title {
54
+ background-color: var(--p-color-bg-fill-transparent-active);
55
+ }
56
+ }
57
+
9
58
  html[class~="Polaris-Summer-Editions-2023"] .Polaris-Tabs__Wrapper {
59
+ .Polaris-Tabs__Tab {
60
+ border-radius: var(--p-border-radius-full);
61
+ color: var(--p-color-text);
62
+
63
+ &::after {
64
+ border-radius: var(--p-border-radius-full);
65
+ }
66
+ }
67
+
68
+ .Polaris-Tabs__Tab:not([aria-disabled='true']):hover {
69
+ background-color: rgba(0, 0, 0, 0.05);
70
+ }
71
+
72
+ .Polaris-Tabs__Tab--active,
73
+ .Polaris-Tabs__Tab--active:not([aria-disabled='true']):hover {
74
+ background-color: var(--p-color-bg-fill-transparent-hover);
75
+ color: var(--p-color-text);
76
+ border-radius: var(--p-border-radius-full);
77
+ }
78
+
10
79
  .Polaris-Tabs__Tab:active, .Polaris-Tabs__Tab:focus {
11
80
  background-color: var(--p-color-bg-fill-transparent-hover);
12
81
  color: var(--p-color-text-brand);
@@ -0,0 +1,45 @@
1
+ html[class~="Polaris-Summer-Editions-2023"] .Polaris-Tag {
2
+ min-height: 1.25rem;
3
+ padding: var(--p-space-025) var(--p-space-200);
4
+ border-radius: var(--p-border-radius-tag);
5
+ background-color: var(--p-color-bg-fill-transparent);
6
+ color: var(--p-color-text-secondary);
7
+ font-size: var(--p-font-size-300);
8
+ font-weight: var(--p-font-weight-medium);
9
+ line-height: 1.125rem;
10
+ letter-spacing: -0.005em;
11
+
12
+ /* The remove button fills the height, so it replaces the vertical padding. */
13
+ &.Polaris-Tag--removable {
14
+ padding-block: 0;
15
+ padding-right: var(--p-space-050);
16
+ }
17
+
18
+ &.Polaris-Tag--clickable,
19
+ &.Polaris-Tag--linkable {
20
+ &:hover {
21
+ background: var(--p-color-bg-fill-transparent-hover);
22
+ }
23
+
24
+ &:active {
25
+ background: var(--p-color-bg-fill-transparent-active);
26
+ }
27
+ }
28
+
29
+ &.Polaris-Tag--disabled {
30
+ background: var(--p-color-bg-fill-disabled);
31
+ color: var(--p-color-text-disabled);
32
+ }
33
+
34
+ .Polaris-Tag__Button {
35
+ border-radius: var(--p-border-radius-full);
36
+
37
+ svg {
38
+ fill: var(--p-color-icon-secondary);
39
+ }
40
+
41
+ &:hover {
42
+ background: var(--p-color-bg-fill-transparent-hover);
43
+ }
44
+ }
45
+ }
@@ -3,3 +3,229 @@ html[class~="Polaris-Summer-Editions-2023"] .Polaris-TextField {
3
3
  display: block;
4
4
  }
5
5
  }
6
+
7
+ /* Labels and help text */
8
+ html[class~="Polaris-Summer-Editions-2023"] {
9
+ .Polaris-Label__Text,
10
+ .Polaris-ChoiceList__Title,
11
+ .Polaris-VerticalStack--fieldsetReset > legend,
12
+ .Polaris-Labelled__LabelWrapper .Polaris-Label {
13
+ font-weight: var(--p-font-weight-medium);
14
+ }
15
+
16
+ .Polaris-Labelled__LabelWrapper {
17
+ margin-bottom: var(--p-space-150);
18
+ }
19
+
20
+ .Polaris-Labelled__HelpText {
21
+ margin-top: var(--p-space-150);
22
+ }
23
+
24
+ .Polaris-Labelled__HelpText,
25
+ .Polaris-Choice__HelpText {
26
+ color: var(--p-color-text-secondary);
27
+ font-size: var(--p-font-size-300);
28
+ line-height: 1.125rem;
29
+ letter-spacing: -0.005em;
30
+
31
+ .Polaris-Text--root {
32
+ font-size: inherit;
33
+ line-height: inherit;
34
+ }
35
+ }
36
+
37
+ .Polaris-InlineError {
38
+ color: var(--p-color-text-critical);
39
+ font-size: var(--p-font-size-300);
40
+ line-height: 1.125rem;
41
+ letter-spacing: -0.005em;
42
+
43
+ .Polaris-Text--root {
44
+ font-size: inherit;
45
+ line-height: inherit;
46
+ }
47
+ }
48
+
49
+ .Polaris-InlineError__Icon {
50
+ fill: var(--p-color-text-critical);
51
+ }
52
+ }
53
+
54
+ /* Text field */
55
+ html[class~="Polaris-Summer-Editions-2023"] {
56
+ .Polaris-TextField__Backdrop {
57
+ border: none;
58
+ border-radius: var(--p-border-radius-control);
59
+ background-color: var(--p-color-input-bg-surface);
60
+ box-shadow: var(--p-shadow-input);
61
+ transition: box-shadow var(--p-motion-duration-150) var(--p-motion-ease);
62
+
63
+ &::after {
64
+ content: none;
65
+ }
66
+ }
67
+
68
+ .Polaris-TextField__Input {
69
+ min-height: 1.875rem;
70
+ padding-top: 0.3125rem;
71
+ padding-bottom: 0.3125rem;
72
+ font-size: var(--p-font-size-325);
73
+ line-height: var(--p-font-line-height-500);
74
+ }
75
+
76
+ .Polaris-TextField__Input::placeholder {
77
+ color: var(--p-color-text-secondary);
78
+ }
79
+
80
+ /* Hover applies to the whole control, including prefixes and suffixes. */
81
+ @media (min-width: 48rem), (pointer: fine) {
82
+ .Polaris-TextField:not(.Polaris-TextField--disabled, .Polaris-TextField--readOnly):hover > .Polaris-TextField__Backdrop,
83
+ .Polaris-TextField:not(.Polaris-TextField--disabled):not(.Polaris-TextField--error):not(.Polaris-TextField--readOnly) > .Polaris-TextField__Input:hover:not(:focus-visible) ~ .Polaris-TextField__Backdrop {
84
+ background-color: var(--p-color-bg-surface-hover);
85
+ border: none;
86
+ box-shadow: var(--p-shadow-input);
87
+ }
88
+
89
+ .Polaris-TextField--error:not(.Polaris-TextField--disabled, .Polaris-TextField--readOnly):hover > .Polaris-TextField__Backdrop,
90
+ .Polaris-TextField--error .Polaris-TextField__Input:hover ~ .Polaris-TextField__Backdrop {
91
+ background-color: var(--p-color-bg-surface-hover);
92
+ box-shadow: var(--p-shadow-input-critical);
93
+ }
94
+ }
95
+
96
+ .Polaris-TextField:not(.Polaris-TextField--disabled, .Polaris-TextField--readOnly):is(.Polaris-TextField--focus, :focus-within) > .Polaris-TextField__Backdrop {
97
+ border: none;
98
+ outline: none;
99
+ background-color: var(--p-color-input-bg-surface-active);
100
+ box-shadow: var(--p-shadow-input-focus);
101
+ }
102
+
103
+ .Polaris-TextField--error > .Polaris-TextField__Input ~ .Polaris-TextField__Backdrop {
104
+ border: none;
105
+ background-color: var(--p-color-input-bg-surface);
106
+ box-shadow: var(--p-shadow-input-critical);
107
+ }
108
+
109
+ .Polaris-TextField--multiline > .Polaris-TextField__Input {
110
+ padding-top: var(--p-space-150);
111
+ padding-bottom: var(--p-space-150);
112
+ }
113
+
114
+ /* Labels of disabled fields are dimmed along with the field. */
115
+ .Polaris-Labelled__LabelWrapper:has(
116
+ + .Polaris-Connected > .Polaris-Connected__Item--primary > .Polaris-TextField--disabled,
117
+ + .Polaris-Select--disabled
118
+ ) .Polaris-Label__Text {
119
+ color: var(--p-color-text-disabled);
120
+ }
121
+
122
+ .Polaris-TextField--error:not(.Polaris-TextField--disabled, .Polaris-TextField--readOnly):is(.Polaris-TextField--focus, :focus-within) > .Polaris-TextField__Backdrop {
123
+ background-color: var(--p-color-input-bg-surface-active);
124
+ box-shadow: var(--p-shadow-input-critical-focus);
125
+ }
126
+
127
+ .Polaris-TextField--disabled > .Polaris-TextField__Backdrop {
128
+ background-color: var(--p-color-input-bg-surface);
129
+ box-shadow: 0 0 0 0.0625rem rgba(0, 0, 0, 0.1);
130
+ }
131
+
132
+ .Polaris-TextField--readOnly > .Polaris-TextField__Backdrop {
133
+ background-color: var(--p-color-bg-surface-disabled);
134
+ box-shadow: none;
135
+ }
136
+
137
+ .Polaris-TextField--readOnly .Polaris-TextField__Input {
138
+ color: var(--p-color-text-secondary);
139
+ }
140
+
141
+ .Polaris-TextField--readOnly > .Polaris-TextField__Input:focus-visible ~ .Polaris-TextField__Backdrop {
142
+ border: none;
143
+ outline: none;
144
+ box-shadow: var(--p-shadow-input-focus);
145
+ }
146
+
147
+ .Polaris-TextField__Prefix,
148
+ .Polaris-TextField__Suffix {
149
+ color: var(--p-color-text-secondary);
150
+ }
151
+
152
+ .Polaris-TextField__Prefix {
153
+ margin-right: var(--p-space-100);
154
+ }
155
+
156
+ .Polaris-TextField__Suffix {
157
+ margin-left: var(--p-space-100);
158
+ }
159
+
160
+ .Polaris-TextField--disabled .Polaris-TextField__Input::placeholder,
161
+ .Polaris-TextField--disabled .Polaris-TextField__Prefix,
162
+ .Polaris-TextField--disabled .Polaris-TextField__Suffix {
163
+ color: var(--p-color-text-disabled);
164
+ }
165
+
166
+ .Polaris-TextField__Spinner {
167
+ margin: var(--p-space-100);
168
+ }
169
+
170
+ .Polaris-TextField__Segment {
171
+ border-radius: var(--p-border-radius-150);
172
+ }
173
+ }
174
+
175
+ /* Select */
176
+ html[class~="Polaris-Summer-Editions-2023"] {
177
+ .Polaris-Select__Backdrop {
178
+ border: none;
179
+ border-radius: var(--p-border-radius-control);
180
+ background-color: var(--p-color-input-bg-surface);
181
+ box-shadow: var(--p-shadow-input);
182
+
183
+ &::after {
184
+ content: none;
185
+ }
186
+ }
187
+
188
+ .Polaris-Select__Content {
189
+ min-height: 1.875rem;
190
+ padding: 0.3125rem var(--p-space-200) 0.3125rem var(--p-space-300);
191
+ font-size: var(--p-font-size-325);
192
+ line-height: var(--p-font-line-height-500);
193
+ }
194
+
195
+ .Polaris-Select__Icon svg {
196
+ fill: #707070;
197
+ }
198
+
199
+ .Polaris-Select:not(.Polaris-Select--disabled):not(.Polaris-Select--error):hover .Polaris-Select__Backdrop {
200
+ border: none;
201
+ background-color: var(--p-color-input-bg-surface-hover);
202
+ box-shadow: var(--p-shadow-input);
203
+ }
204
+
205
+ .Polaris-Select:not(.Polaris-Select--disabled):not(.Polaris-Select--error):focus-within .Polaris-Select__Backdrop {
206
+ border: none;
207
+ outline: none;
208
+ background-color: var(--p-color-input-bg-surface-active);
209
+ box-shadow: var(--p-shadow-input-focus);
210
+ }
211
+
212
+ .Polaris-Select--error .Polaris-Select__Backdrop {
213
+ border: none;
214
+ background-color: var(--p-color-input-bg-surface);
215
+ box-shadow: var(--p-shadow-input-critical);
216
+ }
217
+
218
+ .Polaris-Select--error:not(.Polaris-Select--disabled):hover .Polaris-Select__Backdrop {
219
+ background-color: var(--p-color-input-bg-surface-hover);
220
+ }
221
+
222
+ .Polaris-Select--error:not(.Polaris-Select--disabled):focus-within .Polaris-Select__Backdrop {
223
+ background-color: var(--p-color-input-bg-surface-active);
224
+ box-shadow: var(--p-shadow-input-critical-focus);
225
+ }
226
+
227
+ .Polaris-Select--disabled .Polaris-Select__Backdrop {
228
+ background-color: var(--p-color-input-bg-surface);
229
+ box-shadow: 0 0 0 0.0625rem rgba(0, 0, 0, 0.1);
230
+ }
231
+ }