srcdev-nuxt-components 9.0.10 → 9.0.12

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.
@@ -2,23 +2,6 @@
2
2
  <div class="treatment-consultant">
3
3
  <div class="treatment-consultant__container">
4
4
  <div class="treatment-consultant__content">
5
- <!-- Header -->
6
- <div
7
- v-motion
8
- :initial="{ opacity: 0, y: 20 }"
9
- :enter="{ opacity: 1, y: 0 }"
10
- class="treatment-consultant__header"
11
- >
12
- <EyebrowText text-content="Interactive Tool" font-size="large" />
13
- <h1 class="treatment-consultant__title">
14
- Find Your
15
- <span class="treatment-consultant__title-highlight">Perfect Look</span>
16
- </h1>
17
- <p class="treatment-consultant__subtitle">
18
- Select your hair type, current colour, dream shade, and any treatments to get personalised recommendations.
19
- </p>
20
- </div>
21
-
22
5
  <!-- Progress Steps -->
23
6
  <div class="treatment-consultant__progress">
24
7
  <template v-for="(s, i) in STEPS" :key="s">
@@ -1,95 +1,60 @@
1
1
  <template>
2
- <ul class="home-link-navigation" aria-label="Home Navigation">
3
- <li v-if="slots.homeLink" class="home-link">
4
- <slot name="homeLink">
5
- <NuxtLink to="/" class="home-link-default">Logo</NuxtLink>
6
- </slot>
7
- </li>
8
- <li class="skip-links">
9
- <ul class="skip-links-nav">
10
- <li class="skip-link-item">
11
- <a href="#main-content" class="skip-link" ref="skipLink">Skip to main content</a>
12
- </li>
13
- <li class="skip-link-item"><a href="#footer" class="skip-link">Skip to footer</a></li>
14
- </ul>
15
- </li>
16
- </ul>
2
+ <div class="home-link-navigation">
3
+ <div v-if="slots.homeLink" class="home-link">
4
+ <slot name="homeLink"></slot>
5
+ </div>
6
+ <nav class="skip-links-nav" aria-label="Skip navigation">
7
+ <a ref="skipLink" href="#main-content" class="skip-link">Skip to main content</a>
8
+ <a href="#footer-content" class="skip-link">Skip to footer</a>
9
+ </nav>
10
+ </div>
17
11
  </template>
18
12
 
19
13
  <script lang="ts" setup>
20
- const slots = useSlots()
14
+ const slots = useSlots();
21
15
  </script>
22
16
 
23
17
  <style lang="css">
24
18
  @layer components {
25
- .home-link-navigation {
26
- position: relative;
27
- list-style: none;
28
- padding: 0;
19
+ .home-link-navigation {
20
+ position: relative;
29
21
 
30
- .skip-links {
31
- list-style: none;
32
- background-color: black;
33
- padding: 0;
34
- margin: 0;
35
- position: absolute;
36
- top: 40px;
37
- left: 0;
38
- height: 0;
39
- overflow: hidden;
40
- transition: height 0.3s ease-in-out;
41
-
42
- &:focus-within {
43
- height: auto;
22
+ .skip-links-nav {
23
+ position: absolute;
24
+ top: 100%;
25
+ left: 0;
44
26
  z-index: 1000;
45
- }
46
27
 
47
- .skip-links-nav {
48
28
  display: flex;
49
29
  flex-direction: column;
50
30
  gap: 0.2rem;
51
31
  background-color: black;
52
-
53
32
  border: 1px solid white;
54
-
55
- list-style: none;
56
33
  padding: 0.2rem;
57
34
  margin: 0;
58
35
 
59
- .skip-link-item {
60
- padding: 0.2rem;
36
+ /* Hidden off-screen via transform — does NOT break keyboard focusability */
37
+ opacity: 0;
38
+ transform: translateY(-100%);
39
+ transition: transform 0.3s ease-in-out, opacity 0.3s ease-in-out;
61
40
 
62
- .skip-link {
63
- display: block;
64
- color: white;
65
- text-decoration: none;
66
- margin: 0.2rem;
41
+ &:focus-within {
42
+ opacity: 1;
43
+ transform: translateY(0);
44
+ }
67
45
 
68
- padding: 0.8rem 1.2rem;
69
- text-wrap: nowrap;
46
+ .skip-link {
47
+ display: block;
48
+ color: white;
49
+ text-decoration: none;
50
+ padding: 0.8rem 1.2rem;
51
+ text-wrap: nowrap;
70
52
 
71
- &:focus-visible {
72
- outline: 2px solid white;
73
- }
53
+ &:focus-visible {
54
+ outline: 2px solid white;
74
55
  }
75
56
  }
76
57
  }
77
58
  }
78
59
  }
79
-
80
- /* .skip-link {
81
- position: absolute;
82
- top: -40px;
83
- left: 0;
84
- background: #000;
85
- color: #fff;
86
- padding: 8px 12px;
87
- text-decoration: none;
88
- transition: top 0.3s;
89
- }
90
-
91
- .skip-link:focus {
92
- top: 0;
93
- } */
94
- }
95
60
  </style>
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "srcdev-nuxt-components",
3
3
  "type": "module",
4
- "version": "9.0.10",
4
+ "version": "9.0.12",
5
5
  "main": "nuxt.config.ts",
6
6
  "types": "types.d.ts",
7
7
  "license": "MIT",