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

Prevent labels from overflowing #240

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open

Conversation

mootari
Copy link
Member

@mootari mootari commented Oct 13, 2022

Fixes non-wrapping widget labels bleeding into other elements.

Before / after:

Before / after:

Test snippet:

(label => Inputs.form([
  Inputs.text({label}),
  Inputs.toggle({label}),
  Inputs.select([], {label}),
  Inputs.range([], {label}),
  Inputs.number([], {label}),
  Inputs.button('OK', {label}),
  Inputs.radio([label, label], {label}),
  Inputs.checkbox([label, label], {label}),
]))(
'reallyLongLabelThatDoesntWrapReallyLongLabelThatDoesntWrapreallyLongLabelThatDoesntWrapReallyLongLabel ThatDoesntWrap'
)

@mootari mootari changed the title Fix labels overflowing Prevent labels from overflowing Oct 13, 2022
@mootari mootari requested a review from mbostock October 13, 2022 08:56
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.

1 participant