Skip to content

Commit

Permalink
[@mantine/dropzone] Set data-disabled attribute on the root element…
Browse files Browse the repository at this point in the history
… if `disabled` prop is set (#6946)
  • Loading branch information
rtivital committed Oct 16, 2024
1 parent e8b7056 commit 0b00bf3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions packages/@docs/styles-api/src/data/Dropzone.styles-api.ts
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ export const DropzoneStylesApi: StylesApiData<DropzoneFactory> = {
},
{ modifier: 'data-idle', selector: 'root', condition: 'Dropzone is idle' },
{ modifier: 'data-loading', selector: 'root', condition: '`loading` prop is set' },
{ modifier: 'data-disabled', selector: 'root', condition: '`disabled` prop is set' },
{
modifier: 'data-activate-on-click',
selector: 'root',
Expand Down
1 change: 1 addition & 0 deletions packages/@mantine/dropzone/src/Dropzone.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -288,6 +288,7 @@ export const Dropzone = factory<DropzoneFactory>((_props, ref) => {
accept: isDragAccept,
reject: isDragReject,
idle: isIdle,
disabled,
loading,
'activate-on-click': activateOnClick,
},
Expand Down

0 comments on commit 0b00bf3

Please sign in to comment.