fix a11y issue
This commit is contained in:
Родитель
f19b3742ea
Коммит
4bf206a04c
|
@ -6,7 +6,7 @@ webpackConfig.plugins = webpackConfig.plugins || [];
|
|||
webpackConfig.plugins.push(new webpack.optimize.LimitChunkCountPlugin({ maxChunks: 1 }));
|
||||
|
||||
webpackConfig.module.loaders = webpackConfig.module.loaders.concat([
|
||||
{ test: /bootstrap[\\\/]js[\\\/]/, loader: 'imports?jQuery=jquery' },
|
||||
{ test: /bootstrap[\\/]js[\\/]/, loader: 'imports?jQuery=jquery' },
|
||||
{ test: /\.(woff|woff2)(\?v=\d+\.\d+\.\d+)?$/, loader: 'url?limit=10000&mimetype=application/font-woff' },
|
||||
{ test: /\.ttf(\?v=\d+\.\d+\.\d+)?$/, loader: 'url?limit=10000&mimetype=application/octet-stream' },
|
||||
{ test: /\.eot(\?v=\d+\.\d+\.\d+)?$/, loader: 'file' },
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
li.dropdown-item(role='presentation', class=classes, id=id)
|
||||
a(role='menuitem')
|
||||
a(role='menuitem' href='javascript:void(0);')
|
||||
if iconRight
|
||||
span.icon-right(class=iconRight)
|
||||
if iconLeft
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
.toolbar(class=classes, id=id)
|
||||
.toolbar(class=classes, id=id, role='toolbar')
|
||||
each item in items
|
||||
.toolbar-item
|
||||
!= item.html
|
||||
|
|
|
@ -15,7 +15,7 @@ import _ from 'underscore';
|
|||
export function parseSelector(selector) {
|
||||
const classes = [];
|
||||
const ids = [];
|
||||
const regex = /([#\.])([^#\.]+)/g;
|
||||
const regex = /([#.])([^#.]+)/g;
|
||||
let match = null;
|
||||
|
||||
while ((match = regex.exec(selector)) !== null) {
|
||||
|
|
Загрузка…
Ссылка в новой задаче