@@ -9,14 +9,12 @@ import VIcon from '../src/components/VIcon/VIcon.vue'
99
1010import VueDsfrTheme from './vue-dsfr-theme.js'
1111import '../src/assets/variables-fdr.css'
12+ import '../src/main.css'
1213import '@gouvfr/dsfr/dist/core/core.main.min.css'
1314import '@gouvfr/dsfr/dist/scheme/scheme.min.css'
1415import '@gouvfr/dsfr/dist/component/component.main.min.css'
1516import '@gouvfr/dsfr/dist/utility/utility.main.min.css'
1617import '@gouvfr/dsfr/dist/utility/icons/icons.main.min.css'
17-
18- import '../src/main.css'
19-
2018import './theme.css'
2119// import '@gouvfr/dsfr/dist/core/core.min.css'
2220
@@ -25,15 +23,18 @@ const preview: Preview = {
2523 backgrounds : {
2624 disabled : true ,
2725 } ,
26+
2827 docs : {
2928 theme : { ...themes . normal , ...VueDsfrTheme } ,
3029 } ,
30+
3131 controls : {
3232 matchers : {
3333 color : / ( b a c k g r o u n d | c o l o r ) $ / i,
3434 date : / D a t e $ / i,
3535 } ,
3636 } ,
37+
3738 viewport : {
3839 options : {
3940 DSFR_XS : {
@@ -73,17 +74,20 @@ const preview: Preview = {
7374 } ,
7475 } ,
7576 } ,
77+
7678 options : {
7779 storySort : {
7880 method : 'alphabetical' ,
79- order : [
80- 'Docs' ,
81- 'Fondamentaux' ,
82- 'Composables' ,
83- 'Composants' ,
84- ] ,
81+ order : [ 'Docs' , 'Fondamentaux' , 'Composables' , 'Composants' ] ,
8582 } ,
8683 } ,
84+
85+ a11y : {
86+ // 'todo' - show a11y violations in the test UI only
87+ // 'error' - fail CI on a11y violations
88+ // 'off' - skip a11y checks entirely
89+ test : 'todo' ,
90+ } ,
8791 } ,
8892
8993 tags : [ 'autodocs' ] ,
@@ -108,7 +112,9 @@ const preview: Preview = {
108112 } ,
109113 decorators : [
110114 ( story , context ) => {
111- const selectedTheme = context . globals . theme . includes ( 'clair' ) ? 'light' : 'dark'
115+ const selectedTheme = context . globals . theme . includes ( 'clair' )
116+ ? 'light'
117+ : 'dark'
112118 document . documentElement . setAttribute ( 'data-fr-theme' , selectedTheme )
113119 return story ( )
114120 } ,
@@ -125,7 +131,7 @@ const RouterLink = defineComponent({
125131 ` ,
126132} )
127133
128- setup ( app => {
134+ setup ( ( app ) => {
129135 app . component ( 'RouterLink' , RouterLink )
130136 app . component ( 'VIcon' , VIcon )
131137 app . component ( 'FocusTrap' , FocusTrap )
0 commit comments