Add visuallyhidden plugin
This commit is contained in:
parent
eb57970c1a
commit
0e902f9350
|
@ -19,6 +19,7 @@
|
||||||
"babel-eslint": "^10.0.1",
|
"babel-eslint": "^10.0.1",
|
||||||
"eslint": "^5.8.0",
|
"eslint": "^5.8.0",
|
||||||
"eslint-plugin-vue": "^5.0.0-0",
|
"eslint-plugin-vue": "^5.0.0-0",
|
||||||
|
"tailwindcss-visuallyhidden": "^1.0.1",
|
||||||
"vue-template-compiler": "^2.5.17"
|
"vue-template-compiler": "^2.5.17"
|
||||||
},
|
},
|
||||||
"eslintConfig": {
|
"eslintConfig": {
|
||||||
|
|
|
@ -3,12 +3,12 @@
|
||||||
<div class="bg-grey-lightest rounded overflow-hidden">
|
<div class="bg-grey-lightest rounded overflow-hidden">
|
||||||
<button type="button" class="p-2 focus:outline-none" :class="[mode == 'grid' ? 'bg-blue-light text-white' : 'text-grey-darkest']" @click="$emit('display-changed', 'grid')">
|
<button type="button" class="p-2 focus:outline-none" :class="[mode == 'grid' ? 'bg-blue-light text-white' : 'text-grey-darkest']" @click="$emit('display-changed', 'grid')">
|
||||||
<svg class="h-5 w-5 fill-current" role="presentation"><use xlink:href="/img/icons.symbol.svg#actions__grid"></use></svg>
|
<svg class="h-5 w-5 fill-current" role="presentation"><use xlink:href="/img/icons.symbol.svg#actions__grid"></use></svg>
|
||||||
<span class="hidden">Grid</span>
|
<span class="visuallyhidden">Grid</span>
|
||||||
</button>
|
</button>
|
||||||
|
|
||||||
<button type="button" class="p-2 focus:outline-none" :class="[mode == 'list' ? 'bg-blue-light text-white' : 'text-grey-darkest']" @click="$emit('display-changed', 'list')">
|
<button type="button" class="p-2 focus:outline-none" :class="[mode == 'list' ? 'bg-blue-light text-white' : 'text-grey-darkest']" @click="$emit('display-changed', 'list')">
|
||||||
<svg class="h-5 w-5 fill-current" role="presentation"><use xlink:href="/img/icons.symbol.svg#actions__list"></use></svg>
|
<svg class="h-5 w-5 fill-current" role="presentation"><use xlink:href="/img/icons.symbol.svg#actions__list"></use></svg>
|
||||||
<span class="hidden">List</span>
|
<span class="visuallyhidden">List</span>
|
||||||
</button>
|
</button>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
@ -978,6 +978,7 @@ module.exports = {
|
||||||
// center: true,
|
// center: true,
|
||||||
// padding: '1rem',
|
// padding: '1rem',
|
||||||
}),
|
}),
|
||||||
|
require('tailwindcss-visuallyhidden')(),
|
||||||
],
|
],
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -6237,6 +6237,10 @@ table@^5.0.2:
|
||||||
slice-ansi "2.0.0"
|
slice-ansi "2.0.0"
|
||||||
string-width "^2.1.1"
|
string-width "^2.1.1"
|
||||||
|
|
||||||
|
tailwindcss-visuallyhidden@^1.0.1:
|
||||||
|
version "1.0.1"
|
||||||
|
resolved "https://registry.yarnpkg.com/tailwindcss-visuallyhidden/-/tailwindcss-visuallyhidden-1.0.1.tgz#ed67ecf6ee48ea0313b5c3c27498467f350be206"
|
||||||
|
|
||||||
tailwindcss@^0.7.3:
|
tailwindcss@^0.7.3:
|
||||||
version "0.7.3"
|
version "0.7.3"
|
||||||
resolved "https://registry.yarnpkg.com/tailwindcss/-/tailwindcss-0.7.3.tgz#7b58605dd7857507c4dbc6edaccab4c14d30c054"
|
resolved "https://registry.yarnpkg.com/tailwindcss/-/tailwindcss-0.7.3.tgz#7b58605dd7857507c4dbc6edaccab4c14d30c054"
|
||||||
|
|
Reference in a new issue