Skip to content

Commit

Permalink
Merge branch 'main' into renovate/major-react-router-monorepo
Browse files Browse the repository at this point in the history
  • Loading branch information
xiaopeng0202 authored Jan 2, 2025
2 parents 9e8135f + 40ad0e7 commit f2b773b
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 1 deletion.
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

0 comments on commit f2b773b

Please sign in to comment.