-
Notifications
You must be signed in to change notification settings - Fork 1.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[@mantine/core] PasswordInput: Fix incorrect styles when the componen…
…t is wrapper with element with `data-disabled` attribute (#5149)
- Loading branch information
Showing
7 changed files
with
50 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
27 changes: 27 additions & 0 deletions
27
src/mantine-demos/src/demos/core/PasswordInput/PasswordInput.demo.disabled.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
import React from 'react'; | ||
import { MantineDemo } from '@mantine/ds'; | ||
import { PasswordInput } from '@mantine/core'; | ||
|
||
const code = ` | ||
import { PasswordInput } from '@mantine/core'; | ||
function Demo() { | ||
return ( | ||
<PasswordInput disabled label="Disabled password input" placeholder="Disabled password input" /> | ||
); | ||
} | ||
`; | ||
|
||
function Demo() { | ||
return ( | ||
<PasswordInput disabled label="Disabled password input" placeholder="Disabled password input" /> | ||
); | ||
} | ||
|
||
export const disabled: MantineDemo = { | ||
type: 'code', | ||
component: Demo, | ||
code, | ||
centered: true, | ||
maxWidth: 340, | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters