File tree Expand file tree Collapse file tree 4 files changed +12
-13
lines changed Expand file tree Collapse file tree 4 files changed +12
-13
lines changed Original file line number Diff line number Diff line change @@ -14,10 +14,7 @@ module.exports = {
1414 "some" : [ "nesting" , "id" ]
1515 }
1616 } ] ,
17- "jsx-a11y/label-has-for" : [ "error" , {
18- "required" : {
19- "some" : [ "nesting" , "id" ]
20- }
21- } ]
17+ "jsx-a11y/label-has-associated-control" : [ "error" , { assert : "either" } ] ,
18+ "jsx-a11y/label-has-for" : 'off'
2219 }
2320}
Original file line number Diff line number Diff line change 5959 "babel-eslint" : " ^10.0.2" ,
6060 "babel-loader" : " ^8.0.5" ,
6161 "babel-plugin-styled-components" : " ^1.10.0" ,
62- "classnames" : " ^2.2.6" ,
6362 "cross-env" : " ^5.2.0" ,
6463 "eslint" : " ^5.16.0" ,
6564 "eslint-config-airbnb" : " ^17.1.1" ,
Original file line number Diff line number Diff line change 1+ /* FileIcon will be rewritten soon */
2+ /* eslint-disable */
3+
14import React from 'react' ;
25import propTypes from 'prop-types' ;
36import cx from 'classnames' ;
Original file line number Diff line number Diff line change @@ -4,7 +4,10 @@ import propTypes from 'prop-types';
44import styled from 'styled-components' ;
55import { createBorderStyles , createBoxStyles } from '../common' ;
66
7- const createListPositionStyles = ( { verticalAlign, horizontalAlign } ) => `
7+ const createListPositionStyles = ( {
8+ verticalAlign = 'bottom' ,
9+ horizontalAlign = 'left' ,
10+ } ) => `
811 position: absolute;
912 ${ verticalAlign === 'bottom' ? 'bottom: 0;' : 'top: 0;' }
1013 ${ horizontalAlign === 'left' ? 'left: 0;' : 'right: 0;' }
@@ -63,16 +66,13 @@ List.defaultProps = {
6366 inline : false ,
6467 className : '' ,
6568 children : null ,
66- verticalAlign : 'bottom' ,
67- horizontalAlign : 'left' ,
69+ verticalAlign : undefined ,
70+ horizontalAlign : undefined ,
6871} ;
6972
7073List . propTypes = {
7174 className : propTypes . string ,
72- style : propTypes . shape ( [
73- propTypes . string ,
74- propTypes . number ,
75- ] ) ,
75+ style : propTypes . shape ( [ propTypes . string , propTypes . number ] ) ,
7676 fullWidth : propTypes . bool ,
7777 inline : propTypes . bool ,
7878 shadow : propTypes . bool ,
You can’t perform that action at this time.
0 commit comments