Open GianlucaGuarini opened 1 year ago
I have played a bit with the code of the radio buttons and I think that this issue can be solved removing the noAutoWidth
and minWidth
javascript options.
Using the css display:grid;
combined with gap
properties I have been able to solve all the display issues I have identified.
Thank you @GianlucaGuarini I would also prefer something like this display:grid; combined with gap. @markus-walther
Please only report technical bugs. Clarify design issues in the slack channel #ux-ui-support.
A radio input of type button
<axa-radio button>
computes themin-width
of it's content only once breaking its responsive behavior.Expected Behavior
The width of the
.a-radio__content.js-radio__content
should be responsive and not fixed viamin-width
inline styling.Current Behavior
The content of the radio button breaks if the window gets resized.
Steps to Reproduce
Context (Environment)
Possible Solution
Let the
noAutoWidth
attribute prevent this issue. At the moment it's bypassed if the radio is of type button. Eventually recompute theminWidth
on window resize.