Skip to content

Commit

Permalink
Merge pull request #3583 from specify/issue-3547
Browse files Browse the repository at this point in the history
Take off aria-pressed from toggleMapping as the content of btn changes
  • Loading branch information
CarolineDenis authored Jun 13, 2023
2 parents 3f66c11 + 5224e16 commit f851da9
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
2 changes: 1 addition & 1 deletion specifyweb/frontend/js_src/css/main.css
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,7 @@
}

.button:is([aria-pressed='true'], [aria-selected='true'], [aria-current]):not(.aria-handled) {
@apply brightness-[1.2] dark:brightness-[1.5];
@apply ring-[color:var(--accent-color-300)] brightness-[1.2] dark:brightness-[1.5];
}

button[aria-pressed='true']:not(.aria-handled).link {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,6 @@ export function ToggleMappingViewButton({
}): JSX.Element {
return (
<Button.Small
aria-pressed={!showMappingView}
disabled={fields.length === 0 && showMappingView}
onClick={handleClick}
>
Expand Down

0 comments on commit f851da9

Please sign in to comment.