barbican-reset 1.4.5 → 1.4.6
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/skip_link.vue +43 -0
- package/index.js +3 -1
- package/package.json +1 -1
- package/scss/table/_preferences.scss +5 -0
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<a :href="href" :class="$style.skiplink">
|
|
3
|
+
<slot></slot>
|
|
4
|
+
</a>
|
|
5
|
+
</template>
|
|
6
|
+
|
|
7
|
+
<script>
|
|
8
|
+
export default {
|
|
9
|
+
name: "SkipLink",
|
|
10
|
+
props: {
|
|
11
|
+
href: {
|
|
12
|
+
type: String,
|
|
13
|
+
required: true
|
|
14
|
+
}
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
</script>
|
|
18
|
+
|
|
19
|
+
<style lang="scss" module>
|
|
20
|
+
|
|
21
|
+
.skiplink {
|
|
22
|
+
border: 0.25rem solid $black;
|
|
23
|
+
background-color: $white;
|
|
24
|
+
display: inline-block;
|
|
25
|
+
border-radius: 0.5rem;
|
|
26
|
+
position: absolute;
|
|
27
|
+
padding: 0.5rem;
|
|
28
|
+
color: $black;
|
|
29
|
+
margin: auto;
|
|
30
|
+
width: 12rem;
|
|
31
|
+
z-index: -1;
|
|
32
|
+
top: 0.5rem;
|
|
33
|
+
opacity: 0;
|
|
34
|
+
right: 0;
|
|
35
|
+
left: 0;
|
|
36
|
+
|
|
37
|
+
@include focus {
|
|
38
|
+
opacity: 1;
|
|
39
|
+
z-index: 2;
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
</style>
|
package/index.js
CHANGED
|
@@ -22,6 +22,7 @@ import FluidIframe from './components/fluid_iframe'
|
|
|
22
22
|
import HelpRow from './components/help_row'
|
|
23
23
|
import VideoContent from './components/video_content'
|
|
24
24
|
import PaymentLogo from './components/payment_logo'
|
|
25
|
+
import SkipLink from './components/skip_link'
|
|
25
26
|
|
|
26
27
|
export {
|
|
27
28
|
Loader,
|
|
@@ -46,5 +47,6 @@ export {
|
|
|
46
47
|
HelpRow,
|
|
47
48
|
CardDisplay,
|
|
48
49
|
VideoContent,
|
|
49
|
-
PaymentLogo
|
|
50
|
+
PaymentLogo,
|
|
51
|
+
SkipLink
|
|
50
52
|
};
|
package/package.json
CHANGED