mirror of
https://github.com/scm-manager/scm-manager.git
synced 2025-11-08 06:25:45 +01:00
Improve a11y (#1841)
Improve accessibility by removing unnecessary tags without hrefs. Also remove many eslint errors and warnings.
This commit is contained in:
@@ -36,7 +36,7 @@ const colors = ["primary", "link", "info", "success", "warning", "danger", "whit
|
||||
const sizing = ["xs", "sm", "lg", "2x", "3x", "5x", "7x", "10x"];
|
||||
|
||||
storiesOf("Icon", module)
|
||||
.addDecorator(storyFn => <Wrapper>{storyFn()}</Wrapper>)
|
||||
.addDecorator((storyFn) => <Wrapper>{storyFn()}</Wrapper>)
|
||||
.add("Default", () => (
|
||||
<>
|
||||
<Icon name="cat" />
|
||||
@@ -48,7 +48,7 @@ storiesOf("Icon", module)
|
||||
.add("Colors", () => (
|
||||
<>
|
||||
<Icon title="default color" name="cat" />
|
||||
{colors.map(color => (
|
||||
{colors.map((color) => (
|
||||
<Icon key={color} title={color} name="cat" color={color} />
|
||||
))}
|
||||
</>
|
||||
@@ -56,7 +56,7 @@ storiesOf("Icon", module)
|
||||
.add("Sizing", () => (
|
||||
<>
|
||||
<Icon title="default size" name="cat" />
|
||||
{sizing.map(size => (
|
||||
{sizing.map((size) => (
|
||||
<Icon key={size} title={"fa-" + size} name={"cat fa-" + size} />
|
||||
))}
|
||||
</>
|
||||
|
||||
Reference in New Issue
Block a user