Skip to content

Commit

Permalink
fix(a11y): add aria labelled to sections
Browse files Browse the repository at this point in the history
  • Loading branch information
astagi committed Oct 31, 2024
1 parent 447999b commit eeca34d
Showing 1 changed file with 12 additions and 12 deletions.
24 changes: 12 additions & 12 deletions stories/Components/Section.stories.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,11 @@ export default meta;

export const Esempio = () => {
return (
<Section>
<Section aria-labelledby="titleEx1">
<Container>
<Row className='mb-3'>
<Col xs={'12'}>
<h4>Morbi fermentum amet</h4>
<h2 id="titleEx1">Morbi fermentum amet</h2>
</Col>
</Row>
<Row>
Expand All @@ -42,11 +42,11 @@ export const Esempio = () => {

export const SfondoTenue = () => {
return (
<Section color='muted'>
<Section color='muted' aria-labelledby="titleEx2">
<Container>
<Row className='mb-3'>
<Col xs={'12'}>
<h4>Morbi fermentum amet</h4>
<h2 id="titleEx2">Morbi fermentum amet</h2>
</Col>
</Row>
<Row>
Expand All @@ -70,11 +70,11 @@ export const SfondoTenue = () => {

export const SfondoPrimario = () => {
return (
<Section color='primary'>
<Section color='primary' aria-labelledby="titleEx3">
<Container className='white-color'>
<Row>
<Col xs={'12'}>
<h4>Morbi fermentum amet</h4>
<h2 id="titleEx3">Morbi fermentum amet</h2>
</Col>
</Row>
<Row>
Expand All @@ -98,11 +98,11 @@ export const SfondoPrimario = () => {

export const SfondoNeutrale = () => {
return (
<Section color='neutral'>
<Section color='neutral' aria-labelledby="titleEx4">
<Container className='white-color'>
<Row>
<Col xs={'12'}>
<h4>Morbi fermentum amet</h4>
<h2 id="titleEx4">Morbi fermentum amet</h2>
</Col>
</Row>
<Row>
Expand All @@ -126,11 +126,11 @@ export const SfondoNeutrale = () => {

export const ImmagineDiSfondo = () => {
return (
<Section image='https://picsum.photos/1280/720?image=811'>
<Section image='https://picsum.photos/1280/720?image=811' aria-labelledby="titleEx5">
<Container className='white-color'>
<Row>
<Col xs={'12'}>
<h4>Morbi fermentum amet</h4>
<h2 id="titleEx5">Morbi fermentum amet</h2>
</Col>
</Row>
<Row>
Expand All @@ -154,8 +154,8 @@ export const ImmagineDiSfondo = () => {

export const SectionConCard = () => {
return (
<Section color='muted'>
<h4>Morbi fermentum amet</h4>
<Section color='muted' aria-labelledby="titleEx6">
<h2 id="titleEx6">Morbi fermentum amet</h2>
<Row>
<Col sm={6}>
<Card className='shadow h-100' noWrapper>
Expand Down

0 comments on commit eeca34d

Please sign in to comment.