Skip to content
Merged
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
14 changes: 12 additions & 2 deletions apps/app/src/components/AddQuestionModal.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -122,10 +122,20 @@ export const AddQuestionModal = (props: ComponentProps<typeof BaseModal>) => {
</div>
<WysiwygEditor value={content} onChange={setContent} />
<BaseModal.Footer>
<Button type="submit" variant="brandingInverse" disabled={disabled}>
<Button
type="submit"
variant="brandingInverse"
disabled={disabled}
className="focus:shadow-primary dark:focus:shadow-white"
>
{modalData ? "Edytuj" : "Dodaj"} pytanie
</Button>
<Button type="button" variant="branding" onClick={closeModal}>
<Button
type="button"
variant="branding"
onClick={closeModal}
className="dark:focus:shadow-white"
>
Anuluj
</Button>
</BaseModal.Footer>
Expand Down
2 changes: 1 addition & 1 deletion apps/app/src/components/CloseButton/CloseButton.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import { ButtonHTMLAttributes } from "react";
export const CloseButton = ({ className, ...props }: ButtonHTMLAttributes<HTMLButtonElement>) => (
<button
className={twMerge(
"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",
"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",
className,
)}
{...props}
Expand Down