@brightspace-ui/core 1.234.2 → 1.234.3

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.
package/README.md CHANGED
@@ -1,3 +1,5 @@
1
+ > Are you a D2L employee? Use our 🎉 [Daylight Design System site](https://daylight.d2l.dev/)!
2
+
1
3
  # @brightspace-ui/core
2
4
 
3
5
  [![NPM version](https://img.shields.io/npm/v/@brightspace-ui/core.svg)](https://www.npmjs.org/package/@brightspace-ui/core)
@@ -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.234.2",
3
+ "version": "1.234.3",
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",