Skip to content

Commit 819175d

Browse files
fix(app): fix focus styles (#488)
* fix(app): change focus style on CloseButton * fix(app): change shadow color on focus on button in AddQuestionModal
1 parent 8c530c2 commit 819175d

File tree

2 files changed

+13
-3
lines changed

2 files changed

+13
-3
lines changed

apps/app/src/components/AddQuestionModal.tsx

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -122,10 +122,20 @@ export const AddQuestionModal = (props: ComponentProps<typeof BaseModal>) => {
122122
</div>
123123
<WysiwygEditor value={content} onChange={setContent} />
124124
<BaseModal.Footer>
125-
<Button type="submit" variant="brandingInverse" disabled={disabled}>
125+
<Button
126+
type="submit"
127+
variant="brandingInverse"
128+
disabled={disabled}
129+
className="focus:shadow-primary dark:focus:shadow-white"
130+
>
126131
{modalData ? "Edytuj" : "Dodaj"} pytanie
127132
</Button>
128-
<Button type="button" variant="branding" onClick={closeModal}>
133+
<Button
134+
type="button"
135+
variant="branding"
136+
onClick={closeModal}
137+
className="dark:focus:shadow-white"
138+
>
129139
Anuluj
130140
</Button>
131141
</BaseModal.Footer>

apps/app/src/components/CloseButton/CloseButton.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import { ButtonHTMLAttributes } from "react";
44
export const CloseButton = ({ className, ...props }: ButtonHTMLAttributes<HTMLButtonElement>) => (
55
<button
66
className={twMerge(
7-
"flex h-8 w-8 appearance-none items-center justify-center rounded-full text-4xl text-violet-200 transition-colors duration-100 hover:bg-primary hover:text-white focus:shadow-[0_0_10px] focus:shadow-primary focus:outline-none dark:hover:bg-violet-700",
7+
"flex h-8 w-8 appearance-none items-center justify-center rounded-full text-4xl text-violet-200 transition-colors duration-100 hover:bg-primary hover:text-white focus:shadow-[0_0_10px] focus:shadow-primary focus:outline-none dark:hover:bg-violet-700 dark:focus:shadow-white",
88
className,
99
)}
1010
{...props}

0 commit comments

Comments
 (0)