@brightspace-ui/core 2.19.0 → 2.19.1
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/components/link/link.js
CHANGED
|
@@ -2,21 +2,23 @@ import '../colors/colors.js';
|
|
|
2
2
|
import { css, html, LitElement } from 'lit';
|
|
3
3
|
import { classMap } from 'lit/directives/class-map.js';
|
|
4
4
|
import { FocusMixin } from '../../mixins/focus-mixin.js';
|
|
5
|
+
import { FocusVisiblePolyfillMixin } from '../../mixins/focus-visible-polyfill-mixin.js';
|
|
5
6
|
import { ifDefined } from 'lit/directives/if-defined.js';
|
|
6
7
|
|
|
7
8
|
export const linkStyles = css`
|
|
8
9
|
.d2l-link, .d2l-link:visited, .d2l-link:active, .d2l-link:link {
|
|
9
10
|
color: var(--d2l-color-celestine);
|
|
10
11
|
cursor: pointer;
|
|
12
|
+
outline-style: none;
|
|
11
13
|
text-decoration: none;
|
|
12
14
|
}
|
|
13
15
|
:host([skeleton]) .d2l-link.d2l-skeletize::before {
|
|
14
16
|
bottom: 0.2rem;
|
|
15
17
|
top: 0.2rem;
|
|
16
18
|
}
|
|
17
|
-
.d2l-link:hover,
|
|
19
|
+
.d2l-link:hover,
|
|
20
|
+
.d2l-link.focus-visible {
|
|
18
21
|
color: var(--d2l-color-celestine-minus-1);
|
|
19
|
-
outline-width: 0;
|
|
20
22
|
text-decoration: underline;
|
|
21
23
|
}
|
|
22
24
|
.d2l-link.d2l-link-main {
|
|
@@ -42,7 +44,7 @@ export const linkStyles = css`
|
|
|
42
44
|
* This component can be used just like the native anchor tag.
|
|
43
45
|
* @slot - The content (e.g., text) that when selected causes navigation
|
|
44
46
|
*/
|
|
45
|
-
class Link extends FocusMixin(LitElement) {
|
|
47
|
+
class Link extends FocusMixin(FocusVisiblePolyfillMixin(LitElement)) {
|
|
46
48
|
|
|
47
49
|
static get properties() {
|
|
48
50
|
return {
|
|
@@ -18,7 +18,7 @@ import { FocusVisiblePolyfillMixin } from '@brightspace-ui/core/mixins/focus-vis
|
|
|
18
18
|
class MyComponent extends FocusVisiblePolyfillMixin(LitElement) {
|
|
19
19
|
static get styles() {
|
|
20
20
|
return css`
|
|
21
|
-
/* styles to apply when clicked or focused with a
|
|
21
|
+
/* styles to apply when clicked or focused with a keyboard */
|
|
22
22
|
button:hover,
|
|
23
23
|
button:focus {
|
|
24
24
|
background-color: #cccccc;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@brightspace-ui/core",
|
|
3
|
-
"version": "2.19.
|
|
3
|
+
"version": "2.19.1",
|
|
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",
|