3.0.0-beta.30
https://codepen.io/zzseba78/pen/yoEBXm
Resize the width on the browser.
Items should be expand by default and 1/3 on medium and behond.
The class after expand doesn麓t take effect.
https://codepen.io/aarongerig/pen/RZebpr
This pen might help with this issue. So basically we have to set flex-basis: auto on every element with expand behaviour. Additionally all elements with a fixed width also need to have a max-width.
Tested on Chrome 60, Firefox 55, Safari 10.1 _(Attention: has to be tested on Safari < v10.1, since this got fixed with that version.)_, Opera 47.
So, you want to have only 3 items per row for medium and larger viewports and all items in one row for smaller viewports.
For example, if you have 6 items, they are nicely aligned into two rows and on smaller viewports they are squeezed into one row.
I'm I getting this right? Why would you want that?
@saschadube Thanks for your response.
I get your point, and the example it麓s just to show the issue, it麓s not a real use case.
The real use case it麓s any situation that you want to use uk-width-expand ( in conjunction with uk-width-auto for example ) by default , and in larger breaking points you want to be able to control the width.
Most helpful comment
https://codepen.io/aarongerig/pen/RZebpr
This pen might help with this issue. So basically we have to set
flex-basis: autoon every element with expand behaviour. Additionally all elements with a fixed width also need to have amax-width.Tested on Chrome 60, Firefox 55, Safari 10.1 _(Attention: has to be tested on Safari < v10.1, since this got fixed with that version.)_, Opera 47.