[canary][IcDatePicker] with-helper css classes/styles still present after enabling hideHelperText on IcDatePicker #2370
Labels
Date input
date input story & guidance, date picker story & guidance
type: bug 🐛
Something isn't working
Milestone
Summary of the bug
When hideHelperText is enabled, the element remains in the DOM (likely for accessibility reasons), but the associated CSS classes are also still applied. The hydrated class is expected to provide the correct margins, but the with-helper class is overriding it with a smaller margin.
This ticket will fulfil #2864 (internal issue 2735)
🪜 How to reproduce
📸 Code
Here are the DOM elements of the IcDatePicker with hideHelperText enabled:
🖥 📱 Device
🧐 Expected behaviour
CSS classes related to helper text should be removed when hideHelperText is enabled, ensuring that the input label's styling matches the standardized styling of other input labels in the form.
📝 Acceptance Criteria
Given that hideHelperText is enabled on an IcDatePicker,
When the component renders on the page,
Then the relevant CSS classes should be removed or their styling disabled,
And the input label styling should be consistent with other form inputs.
The text was updated successfully, but these errors were encountered: