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] TimeInput width #798

Merged
merged 1 commit into from
Nov 7, 2023
Merged

[Fix] TimeInput width #798

merged 1 commit into from
Nov 7, 2023

Conversation

riitasointi
Copy link
Collaborator

@riitasointi riitasointi commented Nov 6, 2023

Description

This PR removes width: 290px from TimeInput styles and adds max-width: 290px

Motivation and Context

It makes more sense not to have fixed width for TimeInput since it's usually laid out side by side with DateInput. Fixed widths cause problems when the screen gets narrower. With max-width, TimeInput can take less space but never more than 290 (so that e.g. hintText does not overflow unnecessarily)

How Has This Been Tested?

Styleguidist & date + time pattern on the DS site

Release notes

TimeInput

  • Change width: 290px to max-width: 290px

@riitasointi riitasointi requested a review from LJKaski as a code owner November 6, 2023 11:11
@riitasointi riitasointi merged commit 33387c1 into develop Nov 7, 2023
1 check passed
@riitasointi riitasointi deleted the fix/time-input-width branch November 7, 2023 08:30
This was referenced Nov 15, 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.

2 participants