@hashicorp/design-system-components 0.11.2 → 0.12.2

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 (36) hide show
  1. package/CHANGELOG.md +45 -0
  2. package/addon/components/hds/alert/index.hbs +1 -3
  3. package/addon/components/hds/breadcrumb/item.hbs +1 -1
  4. package/addon/components/hds/breadcrumb/truncation.hbs +1 -4
  5. package/addon/components/hds/button/index.hbs +14 -2
  6. package/addon/components/hds/button/index.js +0 -21
  7. package/addon/components/hds/dropdown/list-item/copy-item.hbs +1 -5
  8. package/addon/components/hds/dropdown/list-item/interactive.hbs +19 -41
  9. package/addon/components/hds/interactive/index.hbs +33 -0
  10. package/addon/components/hds/interactive/index.js +33 -0
  11. package/addon/components/hds/link/inline.hbs +23 -0
  12. package/addon/components/hds/link/inline.js +71 -0
  13. package/addon/components/hds/link/standalone.hbs +15 -5
  14. package/addon/components/hds/link/standalone.js +7 -0
  15. package/addon/components/hds/toast/index.hbs +1 -8
  16. package/app/components/hds/{link/cta.js → interactive/index.js} +1 -1
  17. package/app/components/hds/{link-to/cta.js → link/inline.js} +1 -1
  18. package/app/styles/@hashicorp/design-system-components.scss +4 -1
  19. package/app/styles/components/alert.scss +2 -5
  20. package/app/styles/components/breadcrumb.scss +5 -5
  21. package/app/styles/components/button.scss +44 -19
  22. package/app/styles/components/dropdown.scss +9 -9
  23. package/app/styles/components/link/inline.scss +66 -0
  24. package/app/styles/components/link/standalone.scss +4 -4
  25. package/app/styles/mixins/_focus-ring.scss +4 -4
  26. package/blueprints/hds-component/files/addon/components/hds/__name__/index.hbs +1 -1
  27. package/blueprints/hds-component/index.js +34 -0
  28. package/package.json +4 -3
  29. package/addon/components/hds/link/cta.hbs +0 -50
  30. package/addon/components/hds/link/cta.js +0 -150
  31. package/addon/components/hds/link-to/cta.hbs +0 -51
  32. package/addon/components/hds/link-to/cta.js +0 -165
  33. package/addon/components/hds/link-to/standalone.hbs +0 -25
  34. package/addon/components/hds/link-to/standalone.js +0 -151
  35. package/app/components/hds/link-to/standalone.js +0 -1
  36. package/app/styles/components/link/cta.scss +0 -28
package/CHANGELOG.md CHANGED
@@ -1,5 +1,50 @@
1
1
  # @hashicorp/design-system-components
2
2
 
3
+ ## 0.12.2
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies []:
8
+ - @hashicorp/ember-flight-icons@2.0.7
9
+
10
+ ## 0.12.1
11
+
12
+ ### Patch Changes
13
+
14
+ - Updated dependencies []:
15
+ - @hashicorp/ember-flight-icons@2.0.6
16
+
17
+ ## 0.12.0
18
+
19
+ ### Minor Changes
20
+
21
+ - [#217](https://github.com/hashicorp/design-system/pull/217) [`210edd17`](https://github.com/hashicorp/design-system/commit/210edd17431e6e3097260aed0df5a8902f93b7f7) Thanks [@didoo](https://github.com/didoo)! - # Interactive
22
+
23
+ - Introduced `<Hds::Interactive>` (a generic, "utility" component used internally by all the interactive elements like buttons and links)
24
+
25
+ # Button
26
+
27
+ - updated the button API to handle also links as `<a>`/`<LinkTo/LinkToExternal>`
28
+ - it can be used in place of the `<Hds::Link/LinkTo::CTA>` component (see below)
29
+ - when the button is a link - the text is underlined for differentiation with a normal button - ⚠️ **Visual change!** - the button responds to `space` key event
30
+ - removed the `@type` argument from the API in favour of the `type` native attribute - 🚨 **Breaking change!**
31
+
32
+ # Link/LinkTo::CTA
33
+
34
+ - removed the `<Hds::Link/LinkTo::CTA>` component, in favour of `<Hds::Button>` component (see above) - 🚨 **Breaking change!**
35
+
36
+ # Link::Inline
37
+
38
+ - added the `<Hds::Link::Inline>` component (with API very similar to the `<Hds::Link::Standalone>`)
39
+
40
+ # Dropdown
41
+
42
+ - Updated the `Dropdown::ListItem::Interactive` to use the new `<Hds::Interactive>` component
43
+
44
+ # Alert/Toast components
45
+
46
+ - Removed the `<LinkTo::Standalone>` action (now you can use directly `<Link::Standalone>`)
47
+
3
48
  ## 0.11.2
4
49
 
5
50
  ### Patch Changes
@@ -14,9 +14,7 @@
14
14
  <div class="hds-alert__actions">
15
15
  {{yield
16
16
  (hash
17
- Button=(component "hds/button" size="small")
18
- Link::Standalone=(component "hds/link/standalone" size="small")
19
- LinkTo::Standalone=(component "hds/link-to/standalone" size="small")
17
+ Button=(component "hds/button" size="small") Link::Standalone=(component "hds/link/standalone" size="small")
20
18
  )
21
19
  }}
22
20
  </div>
@@ -10,7 +10,7 @@
10
10
  </div>
11
11
  {{else}}
12
12
  <LinkTo
13
- class="hds-breadcrumb__link {{if @hover 'is-hover'}} {{if @active 'is-active'}} {{if @focus 'is-focus'}}"
13
+ class="hds-breadcrumb__link"
14
14
  @models={{hds-link-to-models @model @models}}
15
15
  @query={{hds-link-to-query @query}}
16
16
  @route={{@route}}
@@ -3,10 +3,7 @@
3
3
  <:toggle as |t|>
4
4
  <button
5
5
  type="button"
6
- class="hds-breadcrumb__truncation-toggle
7
- {{if @hover 'is-hover'}}
8
- {{if @active 'is-active'}}
9
- {{if @focus 'is-focus'}}"
6
+ class="hds-breadcrumb__truncation-toggle"
10
7
  aria-expanded={{if t.isOpen "true" "false"}}
11
8
  {{on "click" t.onClickToggle}}
12
9
  >
@@ -1,4 +1,16 @@
1
- <button class={{this.classNames}} ...attributes aria-label={{if this.isIconOnly this.text null}} type={{this.type}}>
1
+ <Hds::Interactive
2
+ class={{this.classNames}}
3
+ @current-when={{@current-when}}
4
+ @models={{hds-link-to-models @model @models}}
5
+ @query={{hds-link-to-query @query}}
6
+ @replace={{@replace}}
7
+ @route={{@route}}
8
+ @isRouteExternal={{@isRouteExternal}}
9
+ @href={{@href}}
10
+ @isHrefExternal={{@isHrefExternal}}
11
+ ...attributes
12
+ aria-label={{if this.isIconOnly this.text null}}
13
+ >
2
14
  {{#if this.isIconOnly}}
3
15
  <div class="hds-button__icon">
4
16
  <FlightIcon @name={{this.icon}} @size={{this.iconSize}} @stretched={{true}} />
@@ -26,4 +38,4 @@
26
38
  </div>
27
39
  {{/if}}
28
40
  {{/if}}
29
- </button>
41
+ </Hds::Interactive>
@@ -3,11 +3,9 @@ import { assert } from '@ember/debug';
3
3
 
4
4
  export const DEFAULT_SIZE = 'medium';
5
5
  export const DEFAULT_COLOR = 'primary';
6
- export const DEFAULT_TYPE = 'button';
7
6
  export const DEFAULT_ICONPOSITION = 'leading';
8
7
  export const SIZES = ['small', 'medium', 'large'];
9
8
  export const COLORS = ['primary', 'secondary', 'tertiary', 'critical'];
10
- export const TYPES = ['button', 'submit', 'reset'];
11
9
  export const ICONPOSITIONS = ['leading', 'trailing'];
12
10
 
13
11
  export default class HdsButtonIndexComponent extends Component {
@@ -126,25 +124,6 @@ export default class HdsButtonIndexComponent extends Component {
126
124
  }
127
125
  }
128
126
 
129
- /**
130
- * @param type
131
- * @type {string}
132
- * @default button
133
- * @description The value for the button's `type` attribute. Acceptable values are `button`, `submit`, and `reset`
134
- */
135
- get type() {
136
- let { type = DEFAULT_TYPE } = this.args;
137
-
138
- assert(
139
- `@type for "Hds::Button" must be one of the following: ${TYPES.join(
140
- ', '
141
- )}; received: ${type}`,
142
- TYPES.includes(type)
143
- );
144
-
145
- return type;
146
- }
147
-
148
127
  /**
149
128
  * @param isFullWidth
150
129
  * @type {boolean}
@@ -4,11 +4,7 @@
4
4
  class="hds-dropdown-list-item__copy-item-title hds-typography-body-100 hds-font-weight-semibold"
5
5
  >{{@copyItemTitle}}</div>
6
6
  {{/if}}
7
- <button
8
- type="button"
9
- class="{{if @state (concat 'is-' @state)}} {{if this.isSuccess 'is-success'}}"
10
- {{on "click" this.copyCode}}
11
- >
7
+ <button type="button" class="{{if this.isSuccess 'is-success'}}" {{on "click" this.copyCode}}>
12
8
  <div class="hds-dropdown-list-item__copy-item-text hds-typography-code-100">
13
9
  {{this.text}}
14
10
  </div>
@@ -1,44 +1,22 @@
1
1
  <li class={{this.classNames}}>
2
- {{#if @route}}
3
- <LinkTo
4
- class="{{if @state (concat 'is-' @state)}}"
5
- @current-when={{@current-when}}
6
- @models={{hds-link-to-models @model @models}}
7
- @query={{hds-link-to-query @query}}
8
- @replace={{@replace}}
9
- @route={{@route}}
10
- ...attributes
11
- >
12
- {{#if @icon}}
13
- <div class="hds-dropdown-list-item__interactive-icon">
14
- <FlightIcon @name={{@icon}} @isInlineBlock={{false}} />
15
- </div>
16
- {{/if}}
17
- <div class="hds-dropdown-list-item__interactive-text hds-typography-body-200 hds-font-weight-medium">
18
- {{this.text}}
2
+ <Hds::Interactive
3
+ @current-when={{@current-when}}
4
+ @models={{hds-link-to-models @model @models}}
5
+ @query={{hds-link-to-query @query}}
6
+ @replace={{@replace}}
7
+ @route={{@route}}
8
+ @isRouteExternal={{@isRouteExternal}}
9
+ @href={{@href}}
10
+ @isHrefExternal={{@isHrefExternal}}
11
+ ...attributes
12
+ >
13
+ {{#if @icon}}
14
+ <div class="hds-dropdown-list-item__interactive-icon">
15
+ <FlightIcon @name={{@icon}} @isInlineBlock={{false}} />
19
16
  </div>
20
- </LinkTo>
21
- {{else if @href}}
22
- <a target="_blank" rel="noopener noreferrer" href={{@href}} class="{{if @state (concat 'is-' @state)}}">
23
- {{#if @icon}}
24
- <div class="hds-dropdown-list-item__interactive-icon">
25
- <FlightIcon @name={{@icon}} @isInlineBlock={{false}} />
26
- </div>
27
- {{/if}}
28
- <div class="hds-dropdown-list-item__interactive-text hds-typography-body-200 hds-font-weight-medium">
29
- {{this.text}}
30
- </div>
31
- </a>
32
- {{else}}
33
- <button class="{{if @state (concat 'is-' @state)}}" type="button" ...attributes>
34
- {{#if @icon}}
35
- <div class="hds-dropdown-list-item__interactive-icon">
36
- <FlightIcon @name={{@icon}} @isInlineBlock={{false}} />
37
- </div>
38
- {{/if}}
39
- <div class="hds-dropdown-list-item__interactive-text hds-typography-body-200 hds-font-weight-medium">
40
- {{this.text}}
41
- </div>
42
- </button>
43
- {{/if}}
17
+ {{/if}}
18
+ <div class="hds-dropdown-list-item__interactive-text hds-typography-body-200 hds-font-weight-medium">
19
+ {{this.text}}
20
+ </div>
21
+ </Hds::Interactive>
44
22
  </li>
@@ -0,0 +1,33 @@
1
+ {{! IMPORTANT: we removed the newlines before/after the yield to reduce the issues with unexpected whitespaces (see https://github.com/hashicorp/design-system/pull/231#issuecomment-1123502499) }}
2
+ {{! NOTICE: we can't support the direct use of the "href" HTML attribute via ...attributes in the <a> elements, because we need to rely on the "@href" Ember argument to differentiate between different types of generated output }}
3
+ {{#if @route}}
4
+ {{#if this.isRouteExternal}}
5
+ <LinkToExternal
6
+ @current-when={{@current-when}}
7
+ @models={{hds-link-to-models @model @models}}
8
+ @query={{hds-link-to-query @query}}
9
+ @replace={{@replace}}
10
+ @route={{@route}}
11
+ ...attributes
12
+ >{{yield}}</LinkToExternal>
13
+ {{else}}
14
+ <LinkTo
15
+ @current-when={{@current-when}}
16
+ @models={{hds-link-to-models @model @models}}
17
+ @query={{hds-link-to-query @query}}
18
+ @replace={{@replace}}
19
+ @route={{@route}}
20
+ ...attributes
21
+ >{{yield}}</LinkTo>
22
+ {{/if}}
23
+ {{else if @href}}
24
+ {{#if this.isHrefExternal}}
25
+ <a target="_blank" rel="noopener noreferrer" ...attributes href={{@href}} {{on "keyup" this.onKeyUp}}>{{yield}}</a>
26
+ {{else}}
27
+ <a ...attributes href={{@href}} {{on "keyup" this.onKeyUp}}>{{yield}}</a>
28
+ {{/if}}
29
+ {{else}}
30
+ <button type="button" ...attributes>
31
+ {{yield}}
32
+ </button>
33
+ {{/if}}
@@ -0,0 +1,33 @@
1
+ import Component from '@glimmer/component';
2
+ import { action } from '@ember/object';
3
+
4
+ export default class HdsInteractiveComponent extends Component {
5
+ /**
6
+ * Determines if a @href value is "external" (it adds target="_blank" rel="noopener noreferrer")
7
+ *
8
+ * @param isHrefExternal
9
+ * @type boolean
10
+ * @default true
11
+ */
12
+ get isHrefExternal() {
13
+ return this.args.isHrefExternal ?? true;
14
+ }
15
+
16
+ /**
17
+ * Determines if a @route value is "external" (uses the LinkToExternal component instead of LinkTo)
18
+ *
19
+ * @param isRouteExternal
20
+ * @type boolean
21
+ * @default false
22
+ */
23
+ get isRouteExternal() {
24
+ return this.args.isRouteExternal ?? false;
25
+ }
26
+
27
+ @action
28
+ onKeyUp(event) {
29
+ if (event.key === ' ' || event.code === 'Space') {
30
+ event.target.click();
31
+ }
32
+ }
33
+ }
@@ -0,0 +1,23 @@
1
+ {{! IMPORTANT: we removed the newlines before/after the yield to reduce the issues with unexpected whitespaces (see https://github.com/hashicorp/design-system/pull/231#issuecomment-1123502499) }}
2
+ {{! IMPORTANT: we need to add "squishies" here (~) because otherwise the whitespace added by Ember becomes visible in the link (being an inline element) - See https://handlebarsjs.com/guide/expressions.html#whitespace-control }}
3
+ <Hds::Interactive
4
+ class={{this.classNames}}
5
+ @current-when={{@current-when}}
6
+ @models={{hds-link-to-models @model @models}}
7
+ @query={{hds-link-to-query @query}}
8
+ @replace={{@replace}}
9
+ @route={{@route}}
10
+ @isRouteExternal={{@isRouteExternal}}
11
+ @href={{@href}}
12
+ target="_blank"
13
+ rel="noopener noreferrer"
14
+ ...attributes
15
+ >{{#if (and @icon (eq this.iconPosition "leading"))~}}
16
+ <span class="hds-link-inline__icon hds-link-inline__icon--leading">
17
+ <FlightIcon @name={{@icon}} @size="16" @stretched={{true}} />
18
+ </span>
19
+ {{~/if~}}{{yield}}{{~#if (and @icon (eq this.iconPosition "trailing"))~}}
20
+ <span class="hds-link-inline__icon hds-link-inline__icon--trailing">
21
+ <FlightIcon @name={{@icon}} @size="16" @stretched={{true}} />
22
+ </span>
23
+ {{~/if}}</Hds::Interactive>
@@ -0,0 +1,71 @@
1
+ import Component from '@glimmer/component';
2
+ import { assert } from '@ember/debug';
3
+
4
+ export const DEFAULT_ICONPOSITION = 'trailing';
5
+ export const DEFAULT_COLOR = 'primary';
6
+ export const ICONPOSITIONS = ['leading', 'trailing'];
7
+ export const COLORS = ['primary', 'secondary'];
8
+
9
+ export default class HdsLinkInlineComponent extends Component {
10
+ constructor() {
11
+ super(...arguments);
12
+ if (!(this.args.href || this.args.route)) {
13
+ assert('@href or @route must be defined for <Hds::Link::Inline>');
14
+ }
15
+ }
16
+
17
+ /**
18
+ * @param color
19
+ * @type {string}
20
+ * @default primary
21
+ * @description Determines the color of link to be used; acceptable values are `primary` and `secondary`
22
+ */
23
+ get color() {
24
+ let { color = DEFAULT_COLOR } = this.args;
25
+
26
+ assert(
27
+ `@color for "Hds::Link::Inline" must be one of the following: ${COLORS.join(
28
+ ', '
29
+ )}; received: ${color}`,
30
+ COLORS.includes(color)
31
+ );
32
+
33
+ return color;
34
+ }
35
+
36
+ /**
37
+ * @param iconPosition
38
+ * @type {string}
39
+ * @default leading
40
+ * @description Positions the icon before or after the text; allowed values are `leading` or `trailing`
41
+ */
42
+ get iconPosition() {
43
+ let { iconPosition = DEFAULT_ICONPOSITION } = this.args;
44
+
45
+ assert(
46
+ `@iconPosition for "Hds::Link::Inline" must be one of the following: ${ICONPOSITIONS.join(
47
+ ', '
48
+ )}; received: ${iconPosition}`,
49
+ ICONPOSITIONS.includes(iconPosition)
50
+ );
51
+
52
+ return iconPosition;
53
+ }
54
+
55
+ /**
56
+ * Get the class names to apply to the component.
57
+ * @method LinkInline#classNames
58
+ * @return {string} The "class" attribute to apply to the component.
59
+ */
60
+ get classNames() {
61
+ let classes = ['hds-link-inline'];
62
+
63
+ // add a class based on the @color argument
64
+ classes.push(`hds-link-inline--color-${this.color}`);
65
+
66
+ // add a class based on the @iconPosition argument
67
+ classes.push(`hds-link-inline--icon-${this.iconPosition}`);
68
+
69
+ return classes.join(' ');
70
+ }
71
+ }
@@ -1,6 +1,17 @@
1
- {{! template-lint-disable link-href-attributes }}
2
- {{! we can disable this linting rule because the developer will add the html attribute themselves }}
3
- <a class={{this.classNames}} target="_blank" rel="noopener noreferrer" ...attributes>
1
+ <Hds::Interactive
2
+ class={{this.classNames}}
3
+ @current-when={{@current-when}}
4
+ @models={{hds-link-to-models @model @models}}
5
+ @query={{hds-link-to-query @query}}
6
+ @replace={{@replace}}
7
+ @route={{@route}}
8
+ @isRouteExternal={{@isRouteExternal}}
9
+ @href={{@href}}
10
+ @isHrefExternal={{@isHrefExternal}}
11
+ target="_blank"
12
+ rel="noopener noreferrer"
13
+ ...attributes
14
+ >
4
15
  {{#if (eq this.iconPosition "leading")}}
5
16
  <div class="hds-link-standalone__icon">
6
17
  <FlightIcon @name={{this.icon}} @size={{this.iconSize}} @stretched={{true}} />
@@ -16,5 +27,4 @@
16
27
  <FlightIcon @name={{this.icon}} @size={{this.iconSize}} @stretched={{true}} />
17
28
  </div>
18
29
  {{/if}}
19
- </a>
20
- {{! template-lint-enable link-href-attributes }}
30
+ </Hds::Interactive>
@@ -9,6 +9,13 @@ export const COLORS = ['primary', 'secondary'];
9
9
  export const SIZES = ['small', 'medium', 'large'];
10
10
 
11
11
  export default class HdsLinkStandaloneComponent extends Component {
12
+ constructor() {
13
+ super(...arguments);
14
+ if (!(this.args.href || this.args.route)) {
15
+ assert('@href or @route must be defined for <Hds::Link::Standalone>');
16
+ }
17
+ }
18
+
12
19
  /**
13
20
  * @param text
14
21
  * @type {string}
@@ -8,13 +8,6 @@
8
8
  as |A|
9
9
  >
10
10
  {{yield
11
- (hash
12
- Title=A.Title
13
- Description=A.Description
14
- Button=A.Button
15
- Link::Standalone=A.Link::Standalone
16
- LinkTo::Standalone=A.LinkTo::Standalone
17
- Generic=A.Generic
18
- )
11
+ (hash Title=A.Title Description=A.Description Button=A.Button Link::Standalone=A.Link::Standalone Generic=A.Generic)
19
12
  }}
20
13
  </Hds::Alert>
@@ -1 +1 @@
1
- export { default } from '@hashicorp/design-system-components/components/hds/link/cta';
1
+ export { default } from '@hashicorp/design-system-components/components/hds/interactive/index';
@@ -1 +1 @@
1
- export { default } from '@hashicorp/design-system-components/components/hds/link-to/cta';
1
+ export { default } from '@hashicorp/design-system-components/components/hds/link/inline';
@@ -5,6 +5,8 @@
5
5
  @use "helpers/focus-ring";
6
6
  @use "helpers/typography";
7
7
 
8
+ // Notice: this list can be automatically edited by the Ember blueprint, please don't remove the start/end comments
9
+ // START COMPONENTS CSS FILES IMPORTS
8
10
  @use "../components/alert";
9
11
  @use "../components/badge";
10
12
  @use "../components/badge-count";
@@ -14,9 +16,10 @@
14
16
  @use "../components/disclosure";
15
17
  @use "../components/dropdown";
16
18
  @use "../components/icon-tile";
17
- @use "../components/link/cta";
19
+ @use "../components/link/inline";
18
20
  @use "../components/link/standalone";
19
21
  @use "../components/toast";
22
+ // END COMPONENT CSS FILES IMPORTS
20
23
 
21
24
  .sr-only {
22
25
  border: 0 !important;
@@ -84,7 +84,6 @@
84
84
  color: var(--token-color-foreground-action);
85
85
 
86
86
  &:focus,
87
- &.is-focus,
88
87
  &:focus-visible {
89
88
  outline: 2px solid var(--token-color-focus-action-internal);
90
89
  outline-offset: 1px;
@@ -132,8 +131,7 @@
132
131
  margin-top: 1px;
133
132
  }
134
133
 
135
- &:hover,
136
- &.is-hover {
134
+ &:hover {
137
135
  &::before { // we re-use the pseudo-element created by the "focus-ring" mixin
138
136
  background-color: rgba(#dedfe3, 0.4);
139
137
  }
@@ -142,8 +140,7 @@
142
140
  // notice: this is used not only for the focus, but also to increase the clickable area
143
141
  @include hds-focus-ring-with-pseudo-element($top: -4px, $right: -4px, $bottom: -4px, $left: -4px);
144
142
 
145
- &:active,
146
- &.is-active {
143
+ &:active {
147
144
  color: var(--token-color-foreground-secondary);
148
145
  &::before {
149
146
  background-color: rgba(#dedfe3, 0.4);
@@ -77,7 +77,7 @@ $hds-breadcrumb-item-visual-horizontal-padding: 4px;
77
77
  text-decoration-color: transparent;
78
78
 
79
79
  &:hover,
80
- &.is-hover {
80
+ &.mock-hover {
81
81
  color: var(--token-color-palette-neutral-600);
82
82
 
83
83
  > .hds-breadcrumb__text {
@@ -89,7 +89,7 @@ $hds-breadcrumb-item-visual-horizontal-padding: 4px;
89
89
  @include hds-focus-ring-basic();
90
90
 
91
91
  &:active,
92
- &.is-active {
92
+ &.mock-active {
93
93
  color: var(--token-color-foreground-secondary);
94
94
 
95
95
  > .hds-breadcrumb__text {
@@ -155,7 +155,7 @@ $hds-breadcrumb-item-visual-horizontal-padding: 4px;
155
155
  width: $hds-breadcrumb-item-height;
156
156
 
157
157
  &:hover,
158
- &.is-hover {
158
+ &.mock-hover {
159
159
  border-color: var(--token-color-border-strong);
160
160
  color: var(--token-color-foreground-faint);
161
161
  }
@@ -164,13 +164,13 @@ $hds-breadcrumb-item-visual-horizontal-padding: 4px;
164
164
  @include hds-focus-ring-basic();
165
165
 
166
166
  &:focus,
167
- &.is-focus {
167
+ &.mock-focus {
168
168
  background-color: transparent;
169
169
  border: none; // important: we need to completely remove the border, of the inner box-shadow of the focus ring will be drawn inside the border
170
170
  }
171
171
 
172
172
  &:active,
173
- &.is-active {
173
+ &.mock-active {
174
174
  background-color: var(--token-color-surface-interactive-active);
175
175
  border-color: var(--token-color-border-strong);
176
176
  color: var(--token-color-foreground-primary);