@primer/view-components 0.3.0-rc.dc2abcf9 → 0.3.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 (66) hide show
  1. package/app/assets/javascripts/primer_view_components.js +1 -1
  2. package/app/assets/javascripts/primer_view_components.js.map +1 -1
  3. package/app/assets/styles/primer_view_components.css +4999 -1
  4. package/app/assets/styles/primer_view_components.css.map +1 -1
  5. package/app/components/primer/alpha/action_list.css +710 -1
  6. package/app/components/primer/alpha/action_list.css.json +77 -77
  7. package/app/components/primer/alpha/auto_complete.css +130 -1
  8. package/app/components/primer/alpha/auto_complete.css.json +4 -4
  9. package/app/components/primer/alpha/banner.css +131 -1
  10. package/app/components/primer/alpha/banner.css.json +2 -2
  11. package/app/components/primer/alpha/button_marketing.css +204 -1
  12. package/app/components/primer/alpha/button_marketing.css.json +9 -9
  13. package/app/components/primer/alpha/dialog.css +607 -1
  14. package/app/components/primer/alpha/dialog.css.json +10 -10
  15. package/app/components/primer/alpha/dropdown.css +265 -1
  16. package/app/components/primer/alpha/dropdown.css.json +19 -19
  17. package/app/components/primer/alpha/layout.css +398 -1
  18. package/app/components/primer/alpha/layout.css.json +16 -16
  19. package/app/components/primer/alpha/menu.css +117 -1
  20. package/app/components/primer/alpha/menu.css.json +7 -7
  21. package/app/components/primer/alpha/overlay.css +32 -1
  22. package/app/components/primer/alpha/overlay.css.json +3 -2
  23. package/app/components/primer/alpha/segmented_control.css +175 -1
  24. package/app/components/primer/alpha/segmented_control.css.json +7 -7
  25. package/app/components/primer/alpha/tab_nav.css +106 -1
  26. package/app/components/primer/alpha/tab_nav.css.json +6 -6
  27. package/app/components/primer/alpha/text_field.css +849 -1
  28. package/app/components/primer/alpha/text_field.css.json +45 -45
  29. package/app/components/primer/alpha/toggle_switch.css +228 -1
  30. package/app/components/primer/alpha/toggle_switch.css.json +10 -10
  31. package/app/components/primer/alpha/underline_nav.css +149 -1
  32. package/app/components/primer/alpha/underline_nav.css.json +8 -8
  33. package/app/components/primer/anchored_position.js +1 -3
  34. package/app/components/primer/beta/avatar.css +74 -1
  35. package/app/components/primer/beta/avatar_stack.css +138 -1
  36. package/app/components/primer/beta/avatar_stack.css.json +6 -6
  37. package/app/components/primer/beta/blankslate.css +90 -1
  38. package/app/components/primer/beta/border_box.css +279 -1
  39. package/app/components/primer/beta/border_box.css.json +4 -4
  40. package/app/components/primer/beta/breadcrumbs.css +27 -1
  41. package/app/components/primer/beta/breadcrumbs.css.json +3 -3
  42. package/app/components/primer/beta/button.css +385 -1
  43. package/app/components/primer/beta/button.css.json +16 -16
  44. package/app/components/primer/beta/button_group.css +23 -1
  45. package/app/components/primer/beta/button_group.css.json +5 -5
  46. package/app/components/primer/beta/counter.css +36 -1
  47. package/app/components/primer/beta/flash.css +150 -1
  48. package/app/components/primer/beta/label.css +105 -1
  49. package/app/components/primer/beta/label.css.json +4 -4
  50. package/app/components/primer/beta/link.css +62 -1
  51. package/app/components/primer/beta/link.css.json +3 -3
  52. package/app/components/primer/beta/popover.css +235 -1
  53. package/app/components/primer/beta/popover.css.json +29 -29
  54. package/app/components/primer/beta/progress_bar.css +26 -1
  55. package/app/components/primer/beta/progress_bar.css.json +1 -1
  56. package/app/components/primer/beta/state.css +50 -1
  57. package/app/components/primer/beta/state.css.json +1 -1
  58. package/app/components/primer/beta/subhead.css +54 -1
  59. package/app/components/primer/beta/subhead.css.json +1 -1
  60. package/app/components/primer/beta/timeline_item.css +95 -1
  61. package/app/components/primer/beta/timeline_item.css.json +1 -1
  62. package/app/components/primer/beta/truncate.css +37 -1
  63. package/app/components/primer/beta/truncate.css.json +6 -6
  64. package/app/components/primer/truncate.css +30 -1
  65. package/app/components/primer/truncate.css.json +4 -4
  66. package/package.json +1 -1
@@ -5,56 +5,56 @@
5
5
  ".ActionListHeader",
6
6
  ".ActionListWrap",
7
7
  ".ActionListWrap--inset",
8
- ".ActionListWrap--divided .ActionListItem-label:before",
9
- ".ActionListWrap--divided .ActionListItem-descriptionWrap--inline:before",
10
- ".ActionListWrap--divided .ActionListItem-descriptionWrap--inline .ActionListItem-label:before",
11
- ".ActionList-sectionDivider+.ActionListItem .ActionListItem-descriptionWrap--inline:before",
12
- ".ActionList-sectionDivider+.ActionListItem .ActionListItem-label:before",
13
- ".ActionListItem:first-of-type .ActionListItem-descriptionWrap--inline:before",
14
- ".ActionListItem:first-of-type .ActionListItem-label:before",
15
- ".ActionListWrap--divided .ActionListItem--navActive .ActionListItem-label:before",
16
- ".ActionListWrap--divided .ActionListItem--navActive+.ActionListItem .ActionListItem-label:before",
8
+ ".ActionListWrap--divided .ActionListItem-label::before",
9
+ ".ActionListWrap--divided .ActionListItem-descriptionWrap--inline::before",
10
+ ".ActionListWrap--divided .ActionListItem-descriptionWrap--inline .ActionListItem-label::before",
11
+ ".ActionListWrap--divided .ActionListItem--navActive .ActionListItem-label::before",
12
+ ".ActionListWrap--divided .ActionListItem--navActive + .ActionListItem .ActionListItem-label::before",
13
+ ".ActionListItem:first-of-type .ActionListItem-label::before",
14
+ ".ActionList-sectionDivider + .ActionListItem .ActionListItem-label::before",
15
+ ".ActionListItem:first-of-type .ActionListItem-descriptionWrap--inline::before",
16
+ ".ActionList-sectionDivider + .ActionListItem .ActionListItem-descriptionWrap--inline::before",
17
17
  ".ActionListItem",
18
- ".ActionListItem:active",
19
18
  ".ActionListItem:hover",
20
- ".ActionListItem:hover .ActionListItem-descriptionWrap--inline:before",
21
- ".ActionListItem:hover .ActionListItem-label:before",
22
- ".ActionListItem:hover+.ActionListItem .ActionListItem-descriptionWrap--inline:before",
23
- ".ActionListItem:hover+.ActionListItem .ActionListItem-label:before",
24
- ".ActionListItem[hidden]+.ActionList-sectionDivider",
25
- ".ActionListItem.ActionListItem--hasSubItem>.ActionListContent",
26
- ".ActionListItem.ActionListItem--hasSubItem>.ActionListContent:hover",
27
- ".ActionListItem.ActionListItem--hasSubItem>.ActionListContent:active",
19
+ ".ActionListItem:active",
20
+ ".ActionListItem:hover .ActionListItem-label::before",
21
+ ".ActionListItem:hover + .ActionListItem .ActionListItem-label::before",
22
+ ".ActionListItem:hover .ActionListItem-descriptionWrap--inline::before",
23
+ ".ActionListItem:hover + .ActionListItem .ActionListItem-descriptionWrap--inline::before",
24
+ ".ActionListItem[hidden] + .ActionList-sectionDivider",
25
+ ".ActionListItem.ActionListItem--hasSubItem > .ActionListContent",
26
+ ".ActionListItem.ActionListItem--hasSubItem > .ActionListContent:hover",
27
+ ".ActionListItem.ActionListItem--hasSubItem > .ActionListContent:active",
28
28
  ".ActionListItem:not(.ActionListItem--hasSubItem):hover",
29
- ".ActionListItem.ActionListItem--hasSubItem>.ActionListContent:hover:not(.ActionListItem--navActive,:focus-visible)",
30
- ".ActionListItem:not(.ActionListItem--hasSubItem):hover:not(.ActionListItem--navActive,:focus-visible)",
29
+ ".ActionListItem:not(.ActionListItem--hasSubItem):hover:not(.ActionListItem--navActive, :focus-visible)",
30
+ ".ActionListItem.ActionListItem--hasSubItem > .ActionListContent:hover:not(.ActionListItem--navActive, :focus-visible)",
31
31
  ".ActionListItem:not(.ActionListItem--hasSubItem):active",
32
- ".ActionListItem.ActionListItem--hasSubItem>.ActionListContent:active:not(.ActionListItem--navActive)",
33
32
  ".ActionListItem:not(.ActionListItem--hasSubItem):active:not(.ActionListItem--navActive)",
34
- ".ActionListItem.ActionListItem--hasSubItem>.ActionListContent:active .ActionListItem-label:before",
35
- ".ActionListItem.ActionListItem--hasSubItem>.ActionListContent:active+.ActionListItem .ActionListItem-label:before",
36
- ".ActionListItem:not(.ActionListItem--hasSubItem):active .ActionListItem-label:before",
37
- ".ActionListItem:not(.ActionListItem--hasSubItem):active+.ActionListItem .ActionListItem-label:before",
38
- ".ActionListItem[aria-selected=true]",
39
- ".ActionListItem[aria-selected=true]:hover",
40
- ".ActionListItem[aria-selected=true]+.ActionListItem:before",
41
- ".ActionListItem[aria-selected=true]:before",
42
- ".ActionListItem[aria-selected=true]:after",
33
+ ".ActionListItem.ActionListItem--hasSubItem > .ActionListContent:active:not(.ActionListItem--navActive)",
34
+ ".ActionListItem:not(.ActionListItem--hasSubItem):active .ActionListItem-label::before",
35
+ ".ActionListItem.ActionListItem--hasSubItem > .ActionListContent:active .ActionListItem-label::before",
36
+ ".ActionListItem:not(.ActionListItem--hasSubItem):active + .ActionListItem .ActionListItem-label::before",
37
+ ".ActionListItem.ActionListItem--hasSubItem > .ActionListContent:active + .ActionListItem .ActionListItem-label::before",
38
+ ".ActionListItem[aria-selected='true']",
39
+ ".ActionListItem[aria-selected='true']:hover",
40
+ ".ActionListItem[aria-selected='true']::before",
41
+ ".ActionListItem[aria-selected='true'] + .ActionListItem::before",
42
+ ".ActionListItem[aria-selected='true']::after",
43
43
  ".ActionListItem.ActionListItem--navActive",
44
44
  ".ActionListItem.ActionListItem--navActive:not(.ActionListItem--subItem) .ActionListItem-label",
45
45
  ".ActionListItem.ActionListItem--navActive:not(.ActionListItem--danger)",
46
46
  ".ActionListItem.ActionListItem--navActive:not(.ActionListItem--danger):hover",
47
- ".ActionListItem.ActionListItem--navActive:not(.ActionListItem--danger)+.ActionListItem:before",
48
- ".ActionListItem.ActionListItem--navActive:not(.ActionListItem--danger):before",
49
- ".ActionListItem.ActionListItem--navActive:not(.ActionListItem--danger):after",
50
- ".ActionListItem.ActionListItem--disabled .ActionListContent .ActionListItem-description",
47
+ ".ActionListItem.ActionListItem--navActive:not(.ActionListItem--danger)::before",
48
+ ".ActionListItem.ActionListItem--navActive:not(.ActionListItem--danger) + .ActionListItem::before",
49
+ ".ActionListItem.ActionListItem--navActive:not(.ActionListItem--danger)::after",
51
50
  ".ActionListItem.ActionListItem--disabled .ActionListContent .ActionListItem-label",
52
- ".ActionListItem[aria-disabled=true] .ActionListContent .ActionListItem-description",
53
- ".ActionListItem[aria-disabled=true] .ActionListContent .ActionListItem-label",
51
+ ".ActionListItem[aria-disabled='true'] .ActionListContent .ActionListItem-label",
52
+ ".ActionListItem.ActionListItem--disabled .ActionListContent .ActionListItem-description",
53
+ ".ActionListItem[aria-disabled='true'] .ActionListContent .ActionListItem-description",
54
54
  ".ActionListItem.ActionListItem--disabled .ActionListContent .ActionListItem-visual",
55
- ".ActionListItem[aria-disabled=true] .ActionListContent .ActionListItem-visual",
55
+ ".ActionListItem[aria-disabled='true'] .ActionListContent .ActionListItem-visual",
56
56
  ".ActionListItem.ActionListItem--disabled:hover",
57
- ".ActionListItem[aria-disabled=true]:hover",
57
+ ".ActionListItem[aria-disabled='true']:hover",
58
58
  ".ActionListItem.ActionListItem--danger .ActionListItem-label",
59
59
  ".ActionListItem.ActionListItem--danger .ActionListItem-visual",
60
60
  ".ActionListItem.ActionListItem--danger:hover",
@@ -64,43 +64,43 @@
64
64
  ".ActionListItem.ActionListItem--danger .ActionListContent:active .ActionListItem-label",
65
65
  ".ActionListItem.ActionListItem--danger .ActionListContent:active .ActionListItem-visual",
66
66
  ".ActionListContent",
67
- ".ActionListContent>:not(:last-child)",
67
+ ".ActionListContent > :not(:last-child)",
68
68
  ".ActionListContent:hover",
69
- ".ActionListContent[aria-disabled=true] .ActionListItem-description",
70
- ".ActionListContent[aria-disabled=true] .ActionListItem-label",
71
- ".ActionListContent[aria-disabled=true] .ActionListItem-visual",
72
- ".ActionListContent[aria-disabled=true]:hover",
73
- ".ActionListContent[aria-expanded]+.ActionList--subGroup",
74
- ".ActionListContent[aria-expanded]+.ActionList--subGroup .ActionListContent",
75
- ".ActionListContent.ActionListContent--visual16[aria-expanded]+.ActionList--subGroup .ActionListContent",
76
- ".ActionListContent.ActionListContent--visual20[aria-expanded]+.ActionList--subGroup .ActionListContent",
77
- ".ActionListContent.ActionListContent--visual24[aria-expanded]+.ActionList--subGroup .ActionListContent",
78
- ".ActionListContent[aria-expanded=true] .ActionListItem-collapseIcon",
79
- ".ActionListContent[aria-expanded=true]+.ActionList--subGroup",
80
- ".ActionListContent.ActionListContent--hasActiveSubItem[aria-expanded=true]>.ActionListItem-label",
81
- ".ActionListContent[aria-expanded=false] .ActionListItem-collapseIcon",
82
- ".ActionListContent[aria-expanded=false]+.ActionList--subGroup",
83
- ".ActionListContent.ActionListContent--hasActiveSubItem[aria-expanded=false]",
84
- ".ActionListContent.ActionListContent--hasActiveSubItem[aria-expanded=false] .ActionListItem-label",
85
- ".ActionListContent.ActionListContent--hasActiveSubItem[aria-expanded=false]+.ActionListItem:before",
86
- ".ActionListContent.ActionListContent--hasActiveSubItem[aria-expanded=false]:before",
87
- ".ActionListContent.ActionListContent--hasActiveSubItem[aria-expanded=false]:after",
88
- ".ActionListContent[aria-checked=true] .ActionListItem-multiSelectCheckmark",
89
- ".ActionListContent[aria-selected=true] .ActionListItem-multiSelectCheckmark",
90
- ".ActionListContent[aria-checked=true] .ActionListItem-singleSelectCheckmark",
91
- ".ActionListContent[aria-selected=true] .ActionListItem-singleSelectCheckmark",
92
- ".ActionListContent[aria-checked=true] .ActionListItem-multiSelectIcon .ActionListItem-multiSelectIconRect",
93
- ".ActionListContent[aria-selected=true] .ActionListItem-multiSelectIcon .ActionListItem-multiSelectIconRect",
94
- ".ActionListContent[aria-checked=true] .ActionListItem-multiSelectIcon .ActionListItem-multiSelectCheckmark",
95
- ".ActionListContent[aria-selected=true] .ActionListItem-multiSelectIcon .ActionListItem-multiSelectCheckmark",
96
- ".ActionListContent[aria-checked=false] .ActionListItem-multiSelectCheckmark",
97
- ".ActionListContent[aria-selected=false] .ActionListItem-multiSelectCheckmark",
98
- ".ActionListContent[aria-checked=false] .ActionListItem-singleSelectCheckmark",
99
- ".ActionListContent[aria-selected=false] .ActionListItem-singleSelectCheckmark",
100
- ".ActionListContent[aria-checked=false] .ActionListItem-multiSelectIcon .ActionListItem-multiSelectIconRect",
101
- ".ActionListContent[aria-selected=false] .ActionListItem-multiSelectIcon .ActionListItem-multiSelectIconRect",
102
- ".ActionListContent[aria-checked=false] .ActionListItem-multiSelectIconRect",
103
- ".ActionListContent[aria-selected=false] .ActionListItem-multiSelectIconRect",
69
+ ".ActionListContent[aria-disabled='true'] .ActionListItem-label",
70
+ ".ActionListContent[aria-disabled='true'] .ActionListItem-description",
71
+ ".ActionListContent[aria-disabled='true'] .ActionListItem-visual",
72
+ ".ActionListContent[aria-disabled='true']:hover",
73
+ ".ActionListContent[aria-expanded] + .ActionList--subGroup",
74
+ ".ActionListContent[aria-expanded] + .ActionList--subGroup .ActionListContent",
75
+ ".ActionListContent.ActionListContent--visual16[aria-expanded] + .ActionList--subGroup .ActionListContent",
76
+ ".ActionListContent.ActionListContent--visual20[aria-expanded] + .ActionList--subGroup .ActionListContent",
77
+ ".ActionListContent.ActionListContent--visual24[aria-expanded] + .ActionList--subGroup .ActionListContent",
78
+ ".ActionListContent[aria-expanded='true'] .ActionListItem-collapseIcon",
79
+ ".ActionListContent[aria-expanded='true'] + .ActionList--subGroup",
80
+ ".ActionListContent.ActionListContent--hasActiveSubItem[aria-expanded='true'] > .ActionListItem-label",
81
+ ".ActionListContent[aria-expanded='false'] .ActionListItem-collapseIcon",
82
+ ".ActionListContent[aria-expanded='false'] + .ActionList--subGroup",
83
+ ".ActionListContent.ActionListContent--hasActiveSubItem[aria-expanded='false']",
84
+ ".ActionListContent.ActionListContent--hasActiveSubItem[aria-expanded='false'] .ActionListItem-label",
85
+ ".ActionListContent.ActionListContent--hasActiveSubItem[aria-expanded='false']::before",
86
+ ".ActionListContent.ActionListContent--hasActiveSubItem[aria-expanded='false'] + .ActionListItem::before",
87
+ ".ActionListContent.ActionListContent--hasActiveSubItem[aria-expanded='false']::after",
88
+ ".ActionListContent[aria-checked='true'] .ActionListItem-multiSelectCheckmark",
89
+ ".ActionListContent[aria-selected='true'] .ActionListItem-multiSelectCheckmark",
90
+ ".ActionListContent[aria-checked='true'] .ActionListItem-singleSelectCheckmark",
91
+ ".ActionListContent[aria-selected='true'] .ActionListItem-singleSelectCheckmark",
92
+ ".ActionListContent[aria-checked='true'] .ActionListItem-multiSelectIcon .ActionListItem-multiSelectIconRect",
93
+ ".ActionListContent[aria-selected='true'] .ActionListItem-multiSelectIcon .ActionListItem-multiSelectIconRect",
94
+ ".ActionListContent[aria-checked='true'] .ActionListItem-multiSelectIcon .ActionListItem-multiSelectCheckmark",
95
+ ".ActionListContent[aria-selected='true'] .ActionListItem-multiSelectIcon .ActionListItem-multiSelectCheckmark",
96
+ ".ActionListContent[aria-checked='false'] .ActionListItem-multiSelectCheckmark",
97
+ ".ActionListContent[aria-selected='false'] .ActionListItem-multiSelectCheckmark",
98
+ ".ActionListContent[aria-checked='false'] .ActionListItem-singleSelectCheckmark",
99
+ ".ActionListContent[aria-selected='false'] .ActionListItem-singleSelectCheckmark",
100
+ ".ActionListContent[aria-checked='false'] .ActionListItem-multiSelectIcon .ActionListItem-multiSelectIconRect",
101
+ ".ActionListContent[aria-selected='false'] .ActionListItem-multiSelectIcon .ActionListItem-multiSelectIconRect",
102
+ ".ActionListContent[aria-checked='false'] .ActionListItem-multiSelectIconRect",
103
+ ".ActionListContent[aria-selected='false'] .ActionListItem-multiSelectIconRect",
104
104
  ".ActionListContent.ActionListContent--sizeLarge",
105
105
  ".ActionListContent.ActionListContent--sizeXLarge",
106
106
  ".ActionListContent.ActionListContent--blockDescription .ActionListItem-visual",
@@ -112,16 +112,16 @@
112
112
  ".ActionListItem-descriptionWrap .ActionListItem-label",
113
113
  ".ActionListItem-descriptionWrap--inline",
114
114
  ".ActionListItem-description",
115
- ".ActionListItem-action",
116
115
  ".ActionListItem-visual",
116
+ ".ActionListItem-action",
117
117
  ".ActionListItem-label",
118
118
  ".ActionListItem-label--truncate",
119
- ".ActionListItem--subItem>.ActionListContent>.ActionListItem-label",
119
+ ".ActionListItem--subItem > .ActionListContent > .ActionListItem-label",
120
120
  ".ActionListItem--withActions",
121
121
  ".ActionListItem-trailingAction",
122
122
  ".ActionListItem--trailingActionHover .ActionListItem-trailingAction",
123
- ".ActionListItem--trailingActionHover:focus-within .ActionListItem-trailingAction",
124
123
  ".ActionListItem--trailingActionHover:hover .ActionListItem-trailingAction",
124
+ ".ActionListItem--trailingActionHover:focus-within .ActionListItem-trailingAction",
125
125
  ".ActionList-sectionDivider:not(:empty)",
126
126
  ".ActionList-sectionDivider:empty",
127
127
  ".ActionList-sectionDivider .ActionList-sectionDivider-title",
@@ -1 +1,130 @@
1
- .autocomplete-label-stacked{display:block;margin-bottom:6px}.autocomplete-label-inline{display:inline;margin-right:6px}@media (max-width:543.98px){.autocomplete-label-inline{display:block;margin-bottom:6px}}.autocomplete-body{display:inline;position:relative}.autocomplete-embedded-icon-wrap{align-items:center;display:inline-flex;padding:4px 8px}.autocomplete-embedded-icon-wrap:focus-within{border-color:var(--focus-outlineColor,var(--color-accent-fg));box-shadow:inset 0 0 0 1px var(--focus-outlineColor,var(--color-accent-fg));outline:none}.autocomplete-embedded-icon-wrap .form-control{border:none;box-shadow:none;margin-left:8px;padding:0}.autocomplete-embedded-icon-wrap .form-control:focus{box-shadow:none}.autocomplete-embedded-icon-wrap .form-control:focus-visible{box-shadow:none}.autocomplete-results{background:var(--overlay-bgColor,var(--color-canvas-overlay));border:var(--borderWidth-thin,max(1px,.0625rem)) solid var(--borderColor-default,var(--color-border-default));border-radius:var(--borderRadius-medium,6px);box-shadow:var(--shadow-resting-medium,var(--color-shadow-medium));font-size:13px;left:0;list-style:none;max-height:20em;min-width:100%;overflow-y:auto;position:absolute;width:max-content;z-index:99}.autocomplete-item{background-color:var(--overlay-bgColor,var(--color-canvas-overlay));border:0;color:var(--fgColor-default,var(--color-fg-default));cursor:pointer;display:block;font-weight:var(--base-text-weight-semibold,600);overflow:hidden;padding:4px 8px;text-align:left;text-decoration:none;text-overflow:ellipsis;white-space:nowrap;width:100%}.autocomplete-item:hover{background-color:var(--bgColor-accent-emphasis,var(--color-accent-fg));color:var(--fgColor-onEmphasis,var(--color-fg-on-emphasis));text-decoration:none}.autocomplete-item:hover *{color:inherit!important}.autocomplete-item.navigation-focus,.autocomplete-item.selected,.autocomplete-item[aria-selected=true]{background-color:var(--bgColor-accent-emphasis,var(--color-accent-fg));color:var(--fgColor-onEmphasis,var(--color-fg-on-emphasis));text-decoration:none}.autocomplete-item.navigation-focus *,.autocomplete-item.selected *,.autocomplete-item[aria-selected=true] *{color:inherit!important}
1
+ /* autocomplete */
2
+
3
+ /* This file can be deprecated when AutoComplete is upstreamed to PVC + rolled out to dotcom https://github.com/github/primer/issues/796
4
+ ** AutoComplete relies on FormControl, Overlay and ActionList CSS */
5
+
6
+ /* Stacked label (default) */
7
+
8
+ .autocomplete-label-stacked {
9
+ display: block;
10
+ margin-bottom: 6px;
11
+ }
12
+
13
+ /* Inline label (non-default) */
14
+
15
+ .autocomplete-label-inline {
16
+ display: inline;
17
+ margin-right: 6px;
18
+ }
19
+
20
+ /* Switch to stacked at smaller viewport */
21
+
22
+ @media (max-width: 543.98px) {
23
+ .autocomplete-label-inline {
24
+ display: block;
25
+ margin-bottom: 6px;
26
+ }
27
+ }
28
+
29
+ /* Wrapper for the input and result elements to ensure alignment */
30
+
31
+ .autocomplete-body {
32
+ position: relative;
33
+ display: inline;
34
+ }
35
+
36
+ /* Wrapper and conditional styles for when an icon is added */
37
+
38
+ .autocomplete-embedded-icon-wrap {
39
+ display: inline-flex;
40
+ padding: 4px 8px;
41
+ align-items: center;
42
+ }
43
+
44
+ .autocomplete-embedded-icon-wrap:focus-within {
45
+ border-color: var(--borderColor-accent-emphasis,var(--color-accent-fg));
46
+
47
+ border-color: var(--focus-outlineColor,var(--color-accent-fg));
48
+
49
+ outline: none;
50
+
51
+ box-shadow: inset 0 0 0 1px var(--focus-outlineColor,var(--color-accent-fg));
52
+ }
53
+
54
+ .autocomplete-embedded-icon-wrap .form-control {
55
+ padding: 0;
56
+ margin-left: 8px;
57
+ border: none;
58
+ box-shadow: none;
59
+ }
60
+
61
+ .autocomplete-embedded-icon-wrap .form-control:focus {
62
+ box-shadow: none;
63
+ }
64
+
65
+ .autocomplete-embedded-icon-wrap .form-control:focus-visible {
66
+ box-shadow: none;
67
+ }
68
+
69
+ /* A pop up list of items used to show autocompleted results */
70
+
71
+ .autocomplete-results {
72
+ position: absolute;
73
+ left: 0;
74
+ z-index: 99;
75
+ width: max-content;
76
+ min-width: 100%;
77
+ max-height: 20em;
78
+ overflow-y: auto;
79
+ font-size: 13px;
80
+ list-style: none;
81
+ background: var(--overlay-bgColor,var(--color-canvas-overlay));
82
+ border: var(--borderWidth-thin,max(1px, 0.0625rem)) solid var(--borderColor-default,var(--color-border-default));
83
+ border-radius: var(--borderRadius-medium,6px);
84
+ box-shadow: var(--shadow-resting-medium,var(--color-shadow-medium));
85
+ }
86
+
87
+ /* One of the items that appears within an autocomplete group
88
+ ** Bold black text on white background */
89
+
90
+ .autocomplete-item {
91
+ display: block;
92
+ width: 100%;
93
+ padding: 4px 8px;
94
+ overflow: hidden;
95
+ font-weight: var(--base-text-weight-semibold,600);
96
+ color: var(--fgColor-default,var(--color-fg-default));
97
+ text-align: left;
98
+ text-decoration: none;
99
+ text-overflow: ellipsis;
100
+ white-space: nowrap;
101
+ cursor: pointer;
102
+ background-color: var(--overlay-bgColor,var(--color-canvas-overlay));
103
+ border: 0;
104
+ }
105
+
106
+ .autocomplete-item:hover {
107
+ color: var(--fgColor-onEmphasis,var(--color-fg-on-emphasis));
108
+ text-decoration: none;
109
+ background-color: var(--bgColor-accent-emphasis,var(--color-accent-fg));
110
+
111
+ /* Inherit color on all child elements to ensure enough contrast */
112
+ }
113
+
114
+ .autocomplete-item:hover * {
115
+ color: inherit !important;
116
+ }
117
+
118
+ .autocomplete-item.selected,
119
+ .autocomplete-item[aria-selected='true'],
120
+ .autocomplete-item.navigation-focus {
121
+ color: var(--fgColor-onEmphasis,var(--color-fg-on-emphasis));
122
+ text-decoration: none;
123
+ background-color: var(--bgColor-accent-emphasis,var(--color-accent-fg));
124
+
125
+ /* Inherit color on all child elements to ensure enough contrast */
126
+ }
127
+
128
+ .autocomplete-item.selected *, .autocomplete-item[aria-selected='true'] *, .autocomplete-item.navigation-focus * {
129
+ color: inherit !important;
130
+ }
@@ -13,11 +13,11 @@
13
13
  ".autocomplete-item",
14
14
  ".autocomplete-item:hover",
15
15
  ".autocomplete-item:hover *",
16
- ".autocomplete-item.navigation-focus",
17
16
  ".autocomplete-item.selected",
18
- ".autocomplete-item[aria-selected=true]",
19
- ".autocomplete-item.navigation-focus *",
17
+ ".autocomplete-item[aria-selected='true']",
18
+ ".autocomplete-item.navigation-focus",
20
19
  ".autocomplete-item.selected *",
21
- ".autocomplete-item[aria-selected=true] *"
20
+ ".autocomplete-item[aria-selected='true'] *",
21
+ ".autocomplete-item.navigation-focus *"
22
22
  ]
23
23
  }
@@ -1 +1,131 @@
1
- .Banner{background-image:linear-gradient(var(--bgColor-accent-muted,var(--color-accent-muted)),var(--bgColor-accent-muted,var(--color-accent-muted)));border:var(--borderWidth-thin,max(1px,.0625rem)) solid var(--borderColor-accent-muted,var(--color-accent-muted));border-radius:var(--borderRadius-medium,6px);color:var(--fgColor-default,var(--color-fg-default));display:grid;grid-auto-flow:column;grid-template-areas:"visual message actions close";grid-template-columns:min-content 1fr minmax(0,auto) min-content;grid-template-rows:min-content;padding:var(--base-size-8,.5rem);position:relative}@media (max-width:543.98px){.Banner{grid-template-areas:"visual message close" ". actions actions";grid-template-columns:min-content 1fr min-content;grid-template-rows:min-content min-content}.Banner .Banner-actions{margin:var(--base-size-8,.5rem) 0 0 var(--base-size-8,.5rem)}}.Banner .Banner-visual{align-self:start;display:grid;grid-area:visual;padding:.375rem var(--base-size-8,.5rem)}.Banner .Banner-visual>.octicon{margin-block:calc(var(--base-size-4,.25rem)/2)}.Banner .Banner-visual>*{align-self:center}.Banner .Banner-message{align-self:center;grid-area:message;padding:.375rem var(--base-size-8,.5rem)}.Banner .Banner-message p:last-child{margin-bottom:0}.Banner .Banner-message .Banner-title:not(:only-child){font-weight:var(--base-text-weight-semibold,600);margin-bottom:0}.Banner .Banner-actions{grid-area:actions}.Banner .Banner-actions:last-child{align-self:center}.Banner .Banner-close{grid-area:close;margin-left:var(--controlStack-medium-gap-condensed,.5rem)}.Banner .Banner-visual .octicon{color:var(--fgColor-accent,var(--color-accent-fg))}.Banner.Banner--warning{background-image:linear-gradient(var(--bgColor-attention-muted,var(--color-attention-subtle)),var(--bgColor-attention-muted,var(--color-attention-subtle)));border-color:var(--borderColor-attention-muted,var(--color-attention-muted));color:var(--fgColor-default,var(--color-fg-default))}.Banner.Banner--warning .Banner-visual .octicon{color:var(--fgColor-attention,var(--color-attention-fg))}.Banner.Banner--error{background-image:linear-gradient(var(--bgColor-danger-muted,var(--color-danger-subtle)),var(--bgColor-danger-muted,var(--color-danger-subtle)));border-color:var(--borderColor-danger-muted,var(--color-danger-muted));color:var(--fgColor-default,var(--color-fg-default))}.Banner.Banner--error .Banner-visual .octicon{color:var(--fgColor-danger,var(--color-danger-fg))}.Banner.Banner--success{background-image:linear-gradient(var(--bgColor-success-muted,var(--color-success-subtle)),var(--bgColor-success-muted,var(--color-success-subtle)));border-color:var(--borderColor-success-muted,var(--color-success-muted));color:var(--fgColor-default,var(--color-fg-default))}.Banner.Banner--success .Banner-visual .octicon{color:var(--fgColor-success,var(--color-success-fg))}.Banner.Banner--full{border-left:0;border-radius:0;border-right:0;margin-top:calc(var(--borderWidth-thin,max(1px, .0625rem))*-1)}@media (max-width:767.98px){.Banner.Banner--full-whenNarrow{border-left:0;border-radius:0;border-right:0;margin-top:calc(var(--borderWidth-thin,max(1px, .0625rem))*-1)}}
1
+ /* Banner alert */
2
+
3
+ .Banner {
4
+ position: relative;
5
+ display: grid;
6
+ padding: var(--base-size-8,0.5rem);
7
+ color: var(--fgColor-default,var(--color-fg-default));
8
+ background-image: linear-gradient(var(--bgColor-accent-muted,var(--color-accent-muted)), var(--bgColor-accent-muted,var(--color-accent-muted)));
9
+ border: var(--borderWidth-thin,max(1px, 0.0625rem)) solid var(--borderColor-accent-muted,var(--color-accent-muted));
10
+ border-radius: var(--borderRadius-medium,6px);
11
+ grid-auto-flow: column;
12
+ grid-template-areas: 'visual message actions close';
13
+ grid-template-columns: min-content 1fr minmax(0, auto) min-content;
14
+ grid-template-rows: min-content;
15
+
16
+ /* `sm` breakpoint variantion */
17
+ }
18
+
19
+ @media (max-width: 543.98px) {
20
+
21
+ .Banner {
22
+ grid-template-areas:
23
+ 'visual message close'
24
+ '. actions actions';
25
+ grid-template-columns: min-content 1fr min-content;
26
+ grid-template-rows: min-content min-content;
27
+ }
28
+
29
+ .Banner .Banner-actions {
30
+ margin: var(--base-size-8,0.5rem) 0 0 var(--base-size-8,0.5rem);
31
+ }
32
+ }
33
+
34
+ /* Elements */
35
+
36
+ .Banner .Banner-visual {
37
+ display: grid;
38
+ padding: 0.375rem var(--base-size-8,0.5rem);
39
+ grid-area: visual;
40
+ align-self: start;
41
+ }
42
+
43
+ .Banner .Banner-visual > .octicon {
44
+ margin-block: calc(var(--base-size-4,0.25rem) / 2);
45
+ }
46
+
47
+ .Banner .Banner-visual > * {
48
+ align-self: center;
49
+ }
50
+
51
+ .Banner .Banner-message {
52
+ padding: 0.375rem var(--base-size-8,0.5rem);
53
+ grid-area: message;
54
+ align-self: center;
55
+ }
56
+
57
+ .Banner .Banner-message p:last-child {
58
+ margin-bottom: 0;
59
+ }
60
+
61
+ .Banner .Banner-message .Banner-title:not(:only-child) {
62
+ margin-bottom: 0;
63
+ font-weight: var(--base-text-weight-semibold,600);
64
+ }
65
+
66
+ .Banner .Banner-actions {
67
+ grid-area: actions;
68
+ }
69
+
70
+ .Banner .Banner-actions:last-child {
71
+ align-self: center;
72
+ }
73
+
74
+ /* is this used anywhere? could not find any use, but unsure */
75
+
76
+ .Banner .Banner-close {
77
+ grid-area: close;
78
+ margin-left: var(--controlStack-medium-gap-condensed,0.5rem);
79
+ }
80
+
81
+ .Banner .Banner-visual .octicon {
82
+ color: var(--fgColor-accent,var(--color-accent-fg));
83
+ }
84
+
85
+ .Banner.Banner--warning {
86
+ color: var(--fgColor-default,var(--color-fg-default));
87
+ background-image: linear-gradient(var(--bgColor-attention-muted,var(--color-attention-subtle)), var(--bgColor-attention-muted,var(--color-attention-subtle)));
88
+ border-color: var(--borderColor-attention-muted,var(--color-attention-muted));
89
+ }
90
+
91
+ .Banner.Banner--warning .Banner-visual .octicon {
92
+ color: var(--fgColor-attention,var(--color-attention-fg));
93
+ }
94
+
95
+ .Banner.Banner--error {
96
+ color: var(--fgColor-default,var(--color-fg-default));
97
+ background-image: linear-gradient(var(--bgColor-danger-muted,var(--color-danger-subtle)), var(--bgColor-danger-muted,var(--color-danger-subtle)));
98
+ border-color: var(--borderColor-danger-muted,var(--color-danger-muted));
99
+ }
100
+
101
+ .Banner.Banner--error .Banner-visual .octicon {
102
+ color: var(--fgColor-danger,var(--color-danger-fg));
103
+ }
104
+
105
+ .Banner.Banner--success {
106
+ color: var(--fgColor-default,var(--color-fg-default));
107
+ background-image: linear-gradient(var(--bgColor-success-muted,var(--color-success-subtle)), var(--bgColor-success-muted,var(--color-success-subtle)));
108
+ border-color: var(--borderColor-success-muted,var(--color-success-muted));
109
+ }
110
+
111
+ .Banner.Banner--success .Banner-visual .octicon {
112
+ color: var(--fgColor-success,var(--color-success-fg));
113
+ }
114
+
115
+ /* Full-width */
116
+
117
+ .Banner.Banner--full {
118
+ margin-top: calc(var(--borderWidth-thin,max(1px, 0.0625rem)) * -1);
119
+ border-right: 0;
120
+ border-left: 0;
121
+ border-radius: 0;
122
+ }
123
+
124
+ @media (max-width: 767.98px) {
125
+ .Banner.Banner--full-whenNarrow {
126
+ margin-top: calc(var(--borderWidth-thin,max(1px, 0.0625rem)) * -1);
127
+ border-right: 0;
128
+ border-left: 0;
129
+ border-radius: 0;
130
+ }
131
+ }
@@ -4,8 +4,8 @@
4
4
  ".Banner",
5
5
  ".Banner .Banner-actions",
6
6
  ".Banner .Banner-visual",
7
- ".Banner .Banner-visual>.octicon",
8
- ".Banner .Banner-visual>*",
7
+ ".Banner .Banner-visual > .octicon",
8
+ ".Banner .Banner-visual > *",
9
9
  ".Banner .Banner-message",
10
10
  ".Banner .Banner-message p:last-child",
11
11
  ".Banner .Banner-message .Banner-title:not(:only-child)",