Skip to content

Commit

Permalink
Merge pull request #11739 from bbc/WSTEAM1-1094-focus-styling-file-up…
Browse files Browse the repository at this point in the history
…loader

WSTEAM1-1094: Adds focus styling for file upload and remove buttons
  • Loading branch information
HarveyPeachey authored Jul 2, 2024
2 parents 5d661cc + 624d94b commit 64f64fa
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -114,6 +114,7 @@ export default ({ files, name, hasAttemptedSubmit }: FileListProps) => {
{file.name}
</span>
<button
css={styles.focusIndicator}
type="button"
aria-describedby={ariaDescribedById}
onClick={() =>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ export default ({
/>
<button
aria-describedby={labelId}
css={styles.fileUploadButton}
css={[styles.fileUploadButton, styles.focusIndicator]}
type="button"
onClick={() => handleUploadClick()}
>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import pixelsToRem from '#app/utilities/pixelsToRem';
import { Theme, css } from '@emotion/react';
import formFieldStyles from '../styles';

export default {
fileInput: () =>
Expand Down Expand Up @@ -106,4 +107,5 @@ export default {
width: `${spacings.QUADRUPLE}rem`,
height: `${spacings.QUADRUPLE}rem`,
}),
focusIndicator: formFieldStyles.focusIndicator,
};

0 comments on commit 64f64fa

Please sign in to comment.