Skip to content

Commit 99f3c15

Browse files
author
John Goodliff
committed
Upgrade to daisyUI v4
1 parent ceda38e commit 99f3c15

File tree

6 files changed

+14
-6
lines changed

6 files changed

+14
-6
lines changed

bun.lock

Lines changed: 4 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@
4848
"@fortawesome/free-brands-svg-icons": "^6.7.2",
4949
"@fortawesome/free-solid-svg-icons": "^6.7.2",
5050
"@fortawesome/react-fontawesome": "^0.2.2",
51-
"daisyui": "^3.0.0",
51+
"daisyui": "^4.0.0",
5252
"framer-motion": "^12.12.1",
5353
"gatsby": "^5.14.3",
5454
"gatsby-plugin-image-generator": "./plugins/gatsby-plugin-image-generator",

src/common/types.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@ export interface DaisyUiThemeInterface {
1515
'base-content': string;
1616
neutral: string;
1717
'neutral-content': string;
18-
'neutral-focus': string;
1918
primary: string;
2019
'primary-content': string;
2120
secondary: string;

src/components/dropzones/large.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ export function LargeDropzone(props: {
1515
className="flex-col flex-1"
1616
onFilesAdded={props.onFilesAdded}
1717
>
18-
<div className="z-20 flex-col flex-1 gap-8 justify-center p-8 m-8 text-center rounded-lg border-2 border-dashed bg-base-100 hover:bg-base-200">
18+
<div className="z-20 flex-col flex-1 gap-8 justify-center p-8 m-8 text-center rounded-lg border-2 border-dashed transition-colors bg-base-100 hover:bg-base-200">
1919
<Icon icon={faFileCirclePlus} className="fa-3x" />
2020
<p className="flex-grow-0">
2121
Drag and drop PDF files here, or click to select files

src/components/modals/base.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ export function Modal(props: {
1818
id={props.id}
1919
className="overflow-hidden visible modal modal-bottom sm:modal-middle sm:backdrop-blur-sm group has-motion"
2020
>
21-
<div className="modal-box sm:w-5/6 sm:max-w-xl flex-col items-center p-8 sm:px-16 overflow-hidden transition-[opacity, transform] has-motion scale-90 group-target:scale-100">
21+
<div className="modal-box sm:w-5/6 sm:max-w-xl flex-col items-center p-8 sm:px-16 overflow-hidden transition-[opacity,transform] has-motion scale-90 group-target:scale-100">
2222
<h3 className="text-lg font-bold text-center">{props.title}</h3>
2323
<br />
2424
<div className="w-fit">{props.children}</div>

src/styles/global.css

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,12 @@
1111

1212
/* These styles to the base layer so that component styles can override them as necessary */
1313
@layer base {
14+
/* Fix for forced scrollbar-gutter when a modal is open */
15+
/* Source: https://github.com/saadeghi/daisyui/pull/2956#issuecomment-2043840868 */
16+
:root:has(:is(.modal-open, .modal:target, .modal-toggle:checked + .modal, .modal[open])) {
17+
scrollbar-gutter: auto !important;
18+
}
19+
1420
/* Override flex-row and flex-col to also change the display type so we don't have to specify this manually every time */
1521
.flex-row,
1622
.flex-col {
@@ -31,6 +37,7 @@
3137
@apply btn;
3238
@apply text-base;
3339
@apply font-button;
40+
@apply uppercase;
3441
}
3542
}
3643

0 commit comments

Comments
 (0)