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) Width of form labels shouldn't exceed workspace width #93

Merged
merged 1 commit into from
Oct 18, 2023

Conversation

denniskigen
Copy link
Member

@denniskigen denniskigen commented Oct 16, 2023

Requirements

  • This PR has a title that briefly describes the work done, including the ticket number if there is a ticket.
  • My work conforms to the OpenMRS 3.0 Styleguide and design documentation.
  • My work includes tests or is validated by existing tests.

Summary

This PR fixes an issue with the width of form labels in the workspace exceeding the size of the viewport. The text-wrap CSS property applied to the label tag doesn't work on either Firefox or Safari. I've replaced all occurrences of text-wrap: wrap with overflow-wrap: break-word, which is compatible with all evergreen browsers.

Screenshots

form-label-width.mp4

Related issue

Slack thread where the issue was first reported https://openmrs.slack.com/archives/CHP5QAE5R/p1697450994041169.

Other

None

@denniskigen denniskigen changed the title (fix) Form labels shouldn't exceed workspace width (fix) Width of form labels shouldn't exceed workspace width Oct 16, 2023
Copy link
Contributor

@hadijahkyampeire hadijahkyampeire left a comment

Choose a reason for hiding this comment

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

Thanks for the fix @denniskigen

@denniskigen denniskigen merged commit bf1598a into main Oct 18, 2023
3 checks passed
@denniskigen denniskigen deleted the fix/label-max-width branch October 18, 2023 11:37
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