Problem/Motivation
When you view a tour on a mobile device, the min-width: 500px in tour tour.module.css causes the tour tip to be larger than the display. This results in situations where the tour, and possibly access to the site, is unusable.

Steps to reproduce
View a tour using a responsive display size smaller than 500 pixels wide.
Proposed resolution
Add some additional breakpoints and styling to tour.module.css that take into account smaller mobile devices.
Remaining tasks
None.
User interface changes
Adjusts sizes of fonts and buttons for very small devices and enforces a better approach to minimum widths.
API changes
None.
Data model changes
None.
Comments
Comment #2
joshuamiRan across this during UAT for an upcoming launch of a new site using tour.
I don't have an immediate idea for a fix. Removing
min-width: 500pxresults in a usable tour tip on mobile, but it looks unnaturally squished on larger displays. Ideally, we would have minimum widths based on breakpoints. Any thoughts on how many breakpoints to support?Comment #4
joshuamiHere is my take on adding a bit better responsive support to the tour tip elements. At smaller breakpoints, it will never exceed the display width and the button and text sizes are adjusted a bit for better spacing on small devices down to 375 pixels wide.
This could definitely use a second set of eyes, but I created a patch from the approach that is working pretty well for me.
Comment #5
joshuamiOne more quick commit to fix the stylelint issues.
Comment #6
smustgrave commentedMind providing screenshots?
Comment #7
joshuamiHere are some screenshots that show a before an after. I've applied the patch of these changes to my blog post about the Tour module as well—if you want to see it in action: https://joshuami.com/blog/2025/tour-module/. The patch slightly alters font sizes as padding per break point for smaller devices.
Before
After
Comment #8
smustgrave commentedAwesome!