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.
@@ -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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "barbican-reset",
3
- "version": "1.4.5",
3
+ "version": "1.4.6",
4
4
  "description": "A collection of useful scss imports and js scripts, that provide consistent styling and functionality across barbican projects.",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -67,6 +67,11 @@ table.preferences {
67
67
  input[type=radio] {
68
68
  position: relative;
69
69
  @include inset(auto);
70
+
71
+ @include focus {
72
+ outline: 0.15rem solid $blue;
73
+ outline-offset: 0.25rem;
74
+ }
70
75
  }
71
76
  }
72
77
  }