dashboard
dashboard copied to clipboard
ColorInput width is broken after visiting Branding Page
Setup
- Rancher version: pre 2.9.0
Describe the bug
- See screenshots
- Branding page - shows wide area for colour, instead of small block colour then colour hash
- Brand page - after visiting the branding page, block colour extends to max width
To Reproduce
- visit branding page, see issue
- then visit banners page, see issue
Result
- as per screenshots
Expected Result
- all colour pickers should look like the bottom screenshot
Screenshots
Branding Page
Banners Page (after visiting brancing page)
Banners Page (without visiting brancing page)
Additional context
- caused by unscoped style block brought in via https://github.com/rancher/dashboard/pull/10502
@torchiaf Do you recall why the styling here - https://github.com/rancher/dashboard/pull/10502/files#diff-ad9b69088ee28dda5c04184c22a48c81bbfc5d19b0c87f087342861aac7f078cR602 - is not scoped?
Ah sorry for the regression. IIRC , there was an issue showing the background images in the correct position. Removing the scope fixed the issue but introduced this regression. I will take a look. @nwmac