Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix input disabled style #1636

Merged
merged 13 commits into from
Jun 24, 2021
1 change: 1 addition & 0 deletions src/components/Input/Input.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -163,6 +163,7 @@ const StyledInput = styled.input<
color: ${palette.TEXT_BLACK};
line-height: 1.6;
box-sizing: border-box;
background-color: transparent;

&::placeholder {
color: ${palette.TEXT_GREY};
Expand Down
10 changes: 9 additions & 1 deletion src/components/Select/Select.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ const Wrapper = styled.div<{
`}
${disabled &&
css`
background-color: ${palette.BASE_GREY};
background-color: ${palette.COLUMN};
color: ${palette.TEXT_DISABLED};
`}
`
Expand Down Expand Up @@ -160,6 +160,14 @@ const SelectBox = styled.select<{ themes: Theme }>`
opacity: 1;
}

/* for IE11 */
&:disabled {
&,
&::-ms-value {
color: ${palette.TEXT_DISABLED};
}
}

&::-ms-expand {
display: none;
}
Expand Down
11 changes: 10 additions & 1 deletion src/components/Textarea/Textarea.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,7 @@ const StyledTextarea = styled.textarea<Props & { themes: Theme; textAreaWidth?:
background-color: #fff;
border: ${frame.border.default};
box-sizing: border-box;
opacity: 1;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

単純に質問なのですが、こちらは何に対処するための指定でしょうか?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Mobile Safariです。
53163d3

確認した環境はシュミレータですが

  • iPhone 12 Pro Max
  • iOS 14.5

となっています。

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ありがとうございます!把握です!

${error
? css`
border-color: ${palette.DANGER};
Expand All @@ -96,10 +97,18 @@ const StyledTextarea = styled.textarea<Props & { themes: Theme; textAreaWidth?:
border-color: ${palette.hoverColor(palette.MAIN)};
}
`}

&::placeholder {
color: ${palette.TEXT_GREY};
}
&[disabled] {
background-color: ${palette.COLUMN};
pointer-events: none;
color: ${palette.TEXT_DISABLED};

&,
&::placeholder {
color: ${palette.TEXT_DISABLED};
}
}
`
}}
Expand Down