blob: 40c17ac70a603bd469596a61c4e447dafdd80068 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
|
<template>
<main id="main-content" class="page-container scroll-container">
<slot />
</main>
</template>
<script>
import JumpLinkMixin from '@/components/Mixins/JumpLinkMixin';
export default {
name: 'PageContainer',
mixins: [JumpLinkMixin],
created() {
this.$root.$on('skip-navigation', () => {
this.setFocus(this.$el);
});
},
};
</script>
<style lang="scss" scoped>
main {
width: 100%;
&:focus-visible {
box-shadow: inset 0 0 0 2px theme-color('primary');
outline: none;
}
}
</style>
|