Merge branch 'main' of github.com:hydralauncher/hydra into fix/video-controller-not-clickable-on-game-details

This commit is contained in:
Hydra 2024-05-13 02:33:28 +01:00
commit ebcdf1af7a
No known key found for this signature in database
8 changed files with 80 additions and 7 deletions

View file

@ -64,7 +64,7 @@ export function BottomPanel() {
<small>{status}</small>
</button>
<small tabIndex={0}>
<small>
v{version} &quot;{VERSION_CODENAME}&quot;
</small>
</footer>

View file

@ -24,7 +24,7 @@ export function CheckboxField({ label, ...props }: CheckboxFieldProps) {
/>
{props.checked && <CheckIcon />}
</div>
<label htmlFor={id} className={styles.checkboxLabel} tabIndex={0}>
<label htmlFor={id} className={styles.checkboxLabel}>
{label}
</label>
</div>

View file

@ -92,7 +92,9 @@ export function Modal({
<Backdrop isClosing={isClosing}>
<div
className={styles.modal({ closing: isClosing })}
role="modal"
role="dialog"
aria-labelledby={title}
aria-describedby={description}
ref={modalContentRef}
>
<div className={styles.modalHeader}>

View file

@ -33,7 +33,7 @@ export function TextField({
return (
<div className={styles.textFieldContainer} {...containerProps}>
{label && <label tabIndex={0}>{label}</label>}
{label && <label htmlFor={id}>{label}</label>}
<div
className={styles.textField({ focused: isFocused, theme })}
@ -49,7 +49,7 @@ export function TextField({
/>
</div>
{hint && <small tabIndex={0}>{hint}</small>}
{hint && <small>{hint}</small>}
</div>
);
}

View file

@ -231,6 +231,7 @@ export function GameDetails() {
<img
src={steamUrlBuilder.logo(objectID!)}
style={{ width: 300, alignSelf: "flex-end" }}
alt={game?.title}
/>
</div>
</div>