mirror of
https://github.com/pelican-dev/panel.git
synced 2026-05-04 18:00:48 +03:00
ui: add read-only styling to Input element
This commit is contained in:
@@ -62,7 +62,14 @@ const inputStyle = css<Props>`
|
||||
${tw`opacity-75`};
|
||||
}
|
||||
|
||||
${props => props.isLight && light};
|
||||
${props =>
|
||||
props.isLight
|
||||
? light
|
||||
: css`
|
||||
&:not(.ignoreReadOnly):read-only {
|
||||
${tw`border-neutral-800 bg-neutral-900`};
|
||||
}
|
||||
`};
|
||||
${props => props.hasError && tw`text-red-100 border-red-400 hover:border-red-300`};
|
||||
`;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user