Topic summary
A user is experiencing a layout issue where product color names display on multiple lines when hovering over color swatches.
Proposed Solution:
Another user suggested adding CSS code to the theme’s stylesheet targeting the color swatch tooltip element. The CSS would:
- Set
text-wrap: nowrapto prevent line breaks - Set
width: fit-contentto adjust width automatically
Status:
The original poster acknowledged the suggestion and plans to implement the CSS fix soon. The issue remains unresolved pending testing of this solution.
Try adding the following CSS to your theme’s css file
.form-field-swatch .tooltip {
text-wrap: nowrap;
width: fit-content;
}
Thank you for responding. I will try this soon. I appreciate this.
