Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: 1724 wcag standards applicant agency #1793

Open
wants to merge 3 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions frontend/src/components/ClientAndCodeInput/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -482,6 +482,7 @@ const ClientAndCodeInput = ({
<ClientSearchModal
linkText="open the client search"
modalLabel="Register A-Class Seedlot"
aria-label="find the client input information"
applySelectedClient={(client: ForestClientSearchType) => {
const selectedClient: StringInputType = {
...clientInput,
Expand Down
6 changes: 6 additions & 0 deletions frontend/src/components/ClientAndCodeInput/styles.scss
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,12 @@
p {
color: var(--#{vars.$bcgov-prefix}-link-primary);
}

p:focus {
outline: 0.15rem solid var(--#{vars.$bcgov-prefix}-link-primary); /* High-contrast focus indicator */
outline-offset: 0.15rem;
border-radius: 0.075rem;
}
}
}
}
2 changes: 1 addition & 1 deletion frontend/src/components/InputErrorText/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ interface InputErrorProps {
const InputErrorText = ({
description
}: InputErrorProps) => (
<div className="input-error-text-component">
<div role="alert" aria-live="polite" className="input-error-text-component">
<ErrorOutline />
<p>{description}</p>
</div>
Expand Down
2 changes: 2 additions & 0 deletions frontend/src/components/PageTitle/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,8 @@ const PageTitle = ({
<IconButton
kind="ghost"
label={isFavourited ? 'Unfavourite' : 'Favourite'}
aria-label={isFavourited ? 'Unfavourite' : 'Favourite'}
aria-pressed={isFavourited}
align="right"
onClick={
isFavourited
Expand Down
Loading