Currently in the process of enhancing a website for mobile devices, and I'm almost finished (yay!) but there's one specific issue that is really challenging:
The Method
I decided to use CSS to transform a tab bar (which is essentially a list) into a dropdown menu functionality. By using jQuery, when the only visible list element is touched, it toggles the class "open" on the ul
-element, revealing all list elements. That's how it operates.
The Dilemma
Upon expanding the dropdown menu, the font size unexpectedly increases from 15px to 19px. Even after inspecting the code thoroughly, there are no clues as to why this change occurs. Adding a rule like font-size: 15px !important;
does not resolve the issue.
To illustrate the problem, I have created a short screencast for your reference: http://youtu.be/MUTJfTK70PE?hd=1
Affected Devices
- Android (Samsung Galaxy)
- iOS (iPod, iPhone, Simulator)
Remarkably, Windows Phone (Internet Explorer) is not impacted by this discrepancy (wow!)
I would greatly appreciate any insights or suggestions on solving this perplexing issue!!