Skip to content

Commit

Permalink
a11y.useValidAnchor を有効にする
Browse files Browse the repository at this point in the history
  • Loading branch information
voluntas committed Nov 17, 2023
1 parent 2aa9222 commit 5830c16
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 10 deletions.
1 change: 0 additions & 1 deletion biome.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@
"useExhaustiveDependencies": "off"
},
"a11y": {
"useValidAnchor": "off",
"useAnchorContent": "off"
}
}
Expand Down
5 changes: 3 additions & 2 deletions src/components/DebugPane/Message.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,8 @@ export const Message: React.FC<Props> = (props) => {
return (
<div className="border border-light rounded mb-1 bg-dark" data-title={title}>
<div className="d-flex justify-content-between align-items-center text-break">
<a
<button
type="button"
className={`debug-title ${disabled ? 'disabled' : ''}`}
onClick={() => setShow(!show)}
aria-controls={ariaControls}
Expand All @@ -62,7 +63,7 @@ export const Message: React.FC<Props> = (props) => {
) : null}
{label}
<span>{title}</span>
</a>
</button>
<div className="border-left">
<CopyLogButton
text={
Expand Down
12 changes: 6 additions & 6 deletions src/components/DevtoolsPane/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -211,9 +211,9 @@ const RowSignalingOptions: React.FC = () => {
return (
<Row className="form-row">
<Col>
<a href="#" className={linkClassNames.join(' ')} onClick={onClick}>
<button type="button" className={linkClassNames.join(' ')} onClick={onClick}>
Signaling options
</a>
</button>
</Col>
<Collapse in={!collapsed}>
<div>
Expand Down Expand Up @@ -261,9 +261,9 @@ const RowAdvancedSignalingOptions: React.FC = () => {
return (
<Row className="form-row">
<Col>
<a href="#" className={linkClassNames.join(' ')} onClick={onClick}>
<button type="button" className={linkClassNames.join(' ')} onClick={onClick}>
Advanced signaling options
</a>
</button>
</Col>
<Collapse in={!collapsed}>
<div>
Expand Down Expand Up @@ -341,9 +341,9 @@ const RowMediaOptions: React.FC = () => {
return (
<Row className="form-row">
<Col>
<a href="#" className={linkClassNames.join(' ')} onClick={onClick}>
<button type="button" className={linkClassNames.join(' ')} onClick={onClick}>
Media options
</a>
</button>
</Col>
<Collapse in={!collapsed}>
<div>
Expand Down
2 changes: 1 addition & 1 deletion src/components/Header/DownloadReportButton.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ export const DownloadReportButton: React.FC = () => {
defaultValue="Download report"
onClick={onClick}
/>
<a ref={anchorRef} style={{ display: 'none' }} />
<button type="button" ref={anchorRef} style={{ display: 'none' }} />
</>
)
}

0 comments on commit 5830c16

Please sign in to comment.