@brightspace-ui/core 1.231.4 → 1.231.7

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.
@@ -93,10 +93,13 @@ export const ListItemMixin = superclass => class extends LocalizeCoreElement(Lis
93
93
  display: none;
94
94
  }
95
95
  :host([_tooltip-showing]),
96
- :host([_dropdown-open]),
97
- :host([_fullscreen-within]) {
96
+ :host([_dropdown-open]) {
98
97
  z-index: 10;
99
98
  }
99
+ :host([_fullscreen-within]) {
100
+ position: fixed; /* required for Safari */
101
+ z-index: 1000; /* must be greater than floating workflow buttons */
102
+ }
100
103
  :host(:first-child) d2l-list-item-generic-layout[data-separators="between"] {
101
104
  border-top: 1px solid transparent;
102
105
  }
@@ -16,9 +16,9 @@ export const menuItemStyles = css`
16
16
  width: 100%;
17
17
  }
18
18
 
19
+ :host(:focus),
20
+ :host([first]:focus),
19
21
  :host(:hover),
20
- :host(:focus-visible),
21
- :host(:focus-visible[first]),
22
22
  :host([first]:hover) {
23
23
  background-color: var(--d2l-menu-background-color-hover);
24
24
  border-bottom: 1px solid var(--d2l-menu-border-color-hover);
@@ -27,6 +27,16 @@ export const menuItemStyles = css`
27
27
  z-index: 2;
28
28
  }
29
29
 
30
+ /** separated because safari is having trouble parsing these */
31
+ :host(:focus-visible),
32
+ :host(:focus-visible[first]) {
33
+ background-color: var(--d2l-menu-background-color-hover);
34
+ border-bottom: 1px solid var(--d2l-menu-border-color-hover);
35
+ border-top: 1px solid var(--d2l-menu-border-color-hover);
36
+ color: var(--d2l-menu-foreground-color-hover);
37
+ z-index: 2;
38
+ }
39
+
30
40
  :host([disabled]), :host([disabled]:hover), :host([disabled]:focus-visible) {
31
41
  cursor: default;
32
42
  opacity: 0.75;
@@ -40,11 +50,15 @@ export const menuItemStyles = css`
40
50
  border-top-color: transparent;
41
51
  }
42
52
 
43
- :host([last]:focus-visible),
44
53
  :host([last]:hover) {
45
54
  border-bottom-color: var(--d2l-menu-border-color-hover);
46
55
  }
47
56
 
57
+ /** separated because safari is having trouble parsing these */
58
+ :host([last]:focus-visible) {
59
+ border-bottom-color: var(--d2l-menu-border-color-hover);
60
+ }
61
+
48
62
  .d2l-menu-item-text {
49
63
  flex: auto;
50
64
  line-height: 1rem;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@brightspace-ui/core",
3
- "version": "1.231.4",
3
+ "version": "1.231.7",
4
4
  "description": "A collection of accessible, free, open-source web components for building Brightspace applications",
5
5
  "type": "module",
6
6
  "repository": "https://github.com/BrightspaceUI/core.git",