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 DateField style #1424

Merged
merged 5 commits into from
Sep 21, 2023
Merged

Fix DateField style #1424

merged 5 commits into from
Sep 21, 2023

Conversation

takurinton
Copy link
Contributor

@takurinton takurinton commented Sep 21, 2023

@changeset-bot
Copy link

changeset-bot bot commented Sep 21, 2023

🦋 Changeset detected

Latest commit: ad1d482

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
ingred-ui Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@netlify
Copy link

netlify bot commented Sep 21, 2023

Deploy Preview for ingred-ui ready!

Name Link
🔨 Latest commit ad1d482
🔍 Latest deploy log https://app.netlify.com/sites/ingred-ui/deploys/650c0052ae00a10008881b94
😎 Deploy Preview https://deploy-preview-1424--ingred-ui.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

@takurinton takurinton changed the title デザイン崩れを修正 Fix DateField style Sep 21, 2023
Comment on lines 8 to 12
export const DateInput = React.forwardRef<HTMLInputElement, InputProps>(
function InputComponent({ error = false, ...rest }, ref) {
return <Input {...rest} ref={ref} isError={error} />;
},
);
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Input コンポーネントについてる overflow: scroll が悪さしていたので、それを削った DateField 用の Input コンポーネントを定義してみた。
暫定的な対応なので、後でもしかしたら違う方向に倒すかもしれないけど、ひとまずこれで既存の不具合は直る。

Copy link
Contributor

Choose a reason for hiding this comment

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

手元のを見た感じだと、<Input />側のoverflow: scrollを消しても問題なさそうだったのだけど、どうかな

Copy link
Contributor Author

Choose a reason for hiding this comment

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

それでいいならそれでいいんですが、横幅が溢れたときにスクロールエリアになる挙動が正しいと思ったので <Input /> 自体は変えないようにしました

Copy link
Contributor Author

Choose a reason for hiding this comment

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

と思ったけど勝手にスクロールになった、なるほど?

Copy link
Contributor

Choose a reason for hiding this comment

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

sousou

Copy link
Contributor Author

Choose a reason for hiding this comment

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

じゃあそうします

Copy link
Contributor Author

Choose a reason for hiding this comment

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

そうした、自分の手元ではそもそもこのバグが再現しないので、再現する人に試してもらう
e0fbb49

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Copy link

@MasamichiIdeue MasamichiIdeue left a comment

Choose a reason for hiding this comment

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

コードはしっかり見れてないけど手元で動作確認しましたー!

@takurinton takurinton requested review from youchann and removed request for youchann September 21, 2023 08:35
@takurinton takurinton merged commit bd6528e into master Sep 21, 2023
3 checks passed
@takurinton takurinton deleted the fix-overflow-scroll branch September 21, 2023 08:42
@FluctMember FluctMember mentioned this pull request Sep 21, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants