<template>
  <main id="main-content" class="page-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%;
  height: 100%;

  &:focus-visible {
    box-shadow: inset 0 0 0 2px theme-color('primary');
    outline: none;
  }
}
</style>
