-
Notifications
You must be signed in to change notification settings - Fork 7
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
Change icons from divs to spans #1857
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
just to double check, does all the styling in the test site and acceptance test pages look the same after this change? div
s and span
s are sometimes styled differently
also, it's probably not a big deal, but we may want to call this change out in the release documentation because any changes to the DOM like this could technically break the styling of an existing implementation if they specifically targeted div
s that we're changing to span
s
The Icon class adds a |
How do we do the callout in the release documentation, Nidhi? |
On our side, this would just mean adding an extra note in our GH release notes explaining possible ramifications of the change. But, it would be up to Baigel if he wants it to be documented more widely, such as in a HH post. The likelihood of this breaking someone's styling is small, but technically possible, so I'm not sure how cautious we want to be about it. As it is right now, if we release this change in a hotfix, all users on v1.16 will get the change automatically without any action on their part (since most implementations pin to a minor version rather than a patch). This could technically mean that styling may suddenly change for them with no action on their part. If we're worried about this possibility, it may be better to release this in a new minor version so implementations wouldn't get the change without deliberately upgrading. If not, then it's probably fine as is |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
for this techops, would we need to address all instances of divs being used within a button anywhere in answers-search-ui and the HH theme? or did they specifically only care about answers-search-ui icons?
I'm honestly not sure, I was going off of a code link that was included in the techops that was from answers-search-ui. I'm assuming they only care about the icons from that sdk since they didn't link any other relevant code. |
I think what's called out in the techops is specifically riven by the the icon component |
to-do item address voiceSearchIcon here |
can we update this item to also include looking into any other usages of a div within a button? if this is not valid html, then we'll want to address all of them |
This reverts commit 2d3c39e because it causes some visual regressions in the HH theme. The HH Theme has styling that targets spans directly and changing the icon elements from divs to spans caused the icons to be inadverdently targeted by that styling.
### Fixes - Revert change to icons (#1857) made in v1.16.6
### Fixes - Change search bar icons used within button component from `div`s to `span`s (#1857). - Note, any styling that is applied by targeting `div`s or `span`s directly may be impacted by this change. This could result in previously applied styles no longer being applied to these icons, or other styles inadvertently being applied to the icons
To address the first issue in this techops, the icons for answers-search-ui should be wrapped in spans, not divs.