Hi,
I have an issue in an app when viewing it on a phone in landscape. The issue is that some of the text on the page is increased in size by the browser when an animation is activated on the page. I have discussed it with Copilot, and we came to the conclusion that the text gets it’s visible size increased when the DOM is being redrawn, and according to Copilot the DOM redraw is activating the Browsers’ accessibility features, which automatically increases the font size of some of the text on my page.
According to Copilot, this accessibility feature is only active in Landscape mode on Phones, and is more pronounced on IOS than Android phones.
So my question to the Accessibility buffs out there, is; Is copilot correct, if so, how would you recommend I handle this? I’ve not even seen this ‘feature’ before when browsing on my phone, this is the first time I’ve encountered this, so I’m guessing there is a way to handle this so that it doesn’t break my UI, or maybe I need to re-think my UI layout?
Extra Info
I am using ElmUI, and the affected text is inside an Element.paragraph
, there is also a lot of unaffected text instances that are inside an Element.el
only. I have tried Element.paragraph [ ] [ Element.el [ ] <| Element.text “..”]
but it still gets increased in size by the browser.
Copilot suggests that the way an Element.paragraph
is rendered by ElmUI is tripping up this Accessibility feature, which is why Element.el
’s are left alone.
There are two types of animations on the page. Some are simple animations on buttons, checkboxes etc, and are created with @andrewMacmurray ‘s wonderful SimpleAnimation package, and some are more complicated animations that run with onAnimationFrameDelta
.
If I remove the simple animations, so that clicking a button or checkbox simply changes it’s state without animating from one state to the next, then the whole issue goes away - until the onAnimationFrameDelta
animation is activated by the user
Edit: There’s a video showing the issue here: https://youtu.be/wofzuZ2e8Uo