Repository navigation
feat(toggle): support label, placement, justify - #26314
Conversation
efc9302 to
0c8e6b5
Compare
This reverts commit 47e4643.
averyrousseau
left a comment
There was a problem hiding this comment.
I noticed that with the RTL fix, the on-off labels in ios mode specifically are borked a little: they're now showing the "I" when the toggle is unchecked (instead of the "O") and don't appear at all when checked. (Or at least, that's what the screenshots are showing.)
Some of the toggles in the legacy sizes test are also rendering strangely in RTL (some handles are shaped and/or positioned incorrectly) though I'm unsure at a glance whether it's the test itself that needs adjusting.
Which ones are shaped incorrectly? FWIW the "Custom Heights" toggles are intentionally customized to look kind of funky. |
|
Thanks, I fixed that in f74a7b6. Also fixed in the |
|
Looks like the screenshots may need updating manually? I would expect the relevant sizing and onOffLabels tests to have failed with the fixes up. |
|
Looking into why the textarea screenshot got updated, but otherwise this PR is good for a review. |
80eecb9 to
12592b5
Compare

Pull request checklist
Please check if your PR fulfills the following requirements:
ionic-docsrepo, in a separate PR. See the contributing guide for details.npm run build) was run locally and any changes were pushednpm run lint) has passed locally and any fixes were made for failuresPull request type
Please check the type of change your PR introduces:
What is the current behavior?
The new standalone toggle does not support labels, label placement, and control justification
What is the new behavior?
labelPlacementjustify.--track-*variables.main: fix(toggle): rtl layout renders correctly in safari #26315 I will sync this branch oncefeature-7.0gets synced withmain.Note: This does not include active/focus/hover states nor does it include fixes required for shadow part customization. This will be done in a separate PR.
Does this introduce a breaking change?
Other information