Skip to content

Commit

Permalink
Update chart configuration and add aria-label="icon"
Browse files Browse the repository at this point in the history
  • Loading branch information
kitloong committed Dec 27, 2023
1 parent bbf4651 commit e34a84e
Showing 1 changed file with 16 additions and 10 deletions.
26 changes: 16 additions & 10 deletions src/pages/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -89,11 +89,13 @@ const Home: NextPage = () => (
x: {
grid: {
display: false,
drawBorder: false,
},
ticks: {
display: false,
},
border: {
display: true,
},
},
y: {
min: 30,
Expand Down Expand Up @@ -177,11 +179,13 @@ const Home: NextPage = () => (
x: {
grid: {
display: false,
drawBorder: false,
},
ticks: {
display: false,
},
border: {
display: true,
},
},
y: {
min: -9,
Expand Down Expand Up @@ -348,12 +352,14 @@ const Home: NextPage = () => (
y: {
grid: {
display: false,
drawBorder: false,
drawTicks: false,
},
ticks: {
display: false,
},
border: {
display: true,
},
},
},
}}
Expand Down Expand Up @@ -945,7 +951,7 @@ const Home: NextPage = () => (
<table className="table border mb-0">
<thead className="table-light fw-semibold">
<tr className="align-middle">
<th className="text-center">
<th className="text-center" aria-label="icon">
<FontAwesomeIcon icon={faUsers} fixedWidth />
</th>
<th>User</th>
Expand Down Expand Up @@ -991,7 +997,7 @@ const Home: NextPage = () => (
</div>
<ProgressBar className="progress-thin" variant="success" now={50} />
</td>
<td className="text-center">
<td className="text-center" aria-label="icon">
<FontAwesomeIcon icon={faCcAmex} size="lg" fixedWidth />
</td>
<td>
Expand Down Expand Up @@ -1057,7 +1063,7 @@ const Home: NextPage = () => (
</div>
<ProgressBar className="progress-thin" variant="info" now={10} />
</td>
<td className="text-center">
<td className="text-center" aria-label="icon">
<FontAwesomeIcon icon={faCcVisa} size="lg" fixedWidth />
</td>
<td>
Expand Down Expand Up @@ -1123,7 +1129,7 @@ const Home: NextPage = () => (
</div>
<ProgressBar className="progress-thin" variant="warning" now={74} />
</td>
<td className="text-center">
<td className="text-center" aria-label="icon">
<FontAwesomeIcon icon={faCcStripe} size="lg" fixedWidth />
</td>
<td>
Expand Down Expand Up @@ -1189,7 +1195,7 @@ const Home: NextPage = () => (
</div>
<ProgressBar className="progress-thin" variant="danger" now={98} />
</td>
<td className="text-center">
<td className="text-center" aria-label="icon">
<FontAwesomeIcon icon={faCcPaypal} size="lg" fixedWidth />
</td>
<td>
Expand Down Expand Up @@ -1255,7 +1261,7 @@ const Home: NextPage = () => (
</div>
<ProgressBar className="progress-thin" variant="info" now={22} />
</td>
<td className="text-center">
<td className="text-center" aria-label="icon">
<FontAwesomeIcon icon={faCcApplePay} size="lg" fixedWidth />
</td>
<td>
Expand Down Expand Up @@ -1321,7 +1327,7 @@ const Home: NextPage = () => (
</div>
<ProgressBar className="progress-thin" variant="success" now={43} />
</td>
<td className="text-center">
<td className="text-center" aria-label="icon">
<FontAwesomeIcon icon={faCcAmex} size="lg" fixedWidth />
</td>
<td>
Expand Down

0 comments on commit e34a84e

Please sign in to comment.