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(alert): long words wrap to next line #28408

Merged
merged 4 commits into from
Oct 25, 2023
Merged

fix(alert): long words wrap to next line #28408

merged 4 commits into from
Oct 25, 2023

Conversation

liamdebeasi
Copy link
Contributor

@liamdebeasi liamdebeasi commented Oct 25, 2023

Issue number: resolves #28406


What is the current behavior?

As part of #27898 we updated the radio and checkbox labels to wrap to the next line instead of truncate. However, we did not consider long words. As a result, long words run outside of the container.

What is the new behavior?

  • The radio and checkbox labels now break on words too in addition to white space characters.

Does this introduce a breaking change?

  • Yes
  • No

Other information

@github-actions github-actions bot added the package: core @ionic/core package label Oct 25, 2023
@liamdebeasi liamdebeasi changed the title Fw 5447 fix(alert): long words wrap to next line Oct 25, 2023
@liamdebeasi liamdebeasi marked this pull request as ready for review October 25, 2023 14:27
@liamdebeasi liamdebeasi requested a review from thetaPC October 25, 2023 14:27
@liamdebeasi liamdebeasi added this pull request to the merge queue Oct 25, 2023
@@ -28,6 +28,59 @@ const testAria = async (
expect(ariaDescribedBy).toBe(expectedAriaDescribedBy);
};

configs({ modes: ['ios'], directions: ['ltr'] }).forEach(({ title, screenshot, config }) => {
Copy link
Contributor

Choose a reason for hiding this comment

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

Not to sound like a broken record but adding an annotation for the issue would be great.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Sorry! I'll add this.

Merged via the queue into main with commit 34257d6 Oct 25, 2023
45 checks passed
@liamdebeasi liamdebeasi deleted the FW-5447 branch October 25, 2023 17:01
github-merge-queue bot pushed a commit that referenced this pull request Oct 25, 2023
Issue number: N/A

---------

<!-- Please do not submit updates to dependencies unless it fixes an
issue. -->

<!-- Please try to limit your pull request to one type (bugfix, feature,
etc). Submit multiple pull requests if needed. -->

## What is the current behavior?
<!-- Please describe the current behavior that you are modifying. -->

I forgot to add annotations to tests to indicate the bug fix they are
validating: #28408

## What is the new behavior?
<!-- Please describe the behavior or changes that are being added by
this PR. -->

- Added annotations

## Does this introduce a breaking change?

- [ ] Yes
- [x] No

<!-- If this introduces a breaking change, please describe the impact
and migration path for existing applications below. -->


## Other information

<!-- Any other information that is important to this PR such as
screenshots of how the component looks before and after the change. -->
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
package: core @ionic/core package
Projects
None yet
Development

Successfully merging this pull request may close these issues.

bug: alert text does not break words when wrapping
4 participants