The 'min-font-size' attribute in 'amp-fit-text' doesn't works inside an 'amp-list' block

96 Views Asked by At

I have an amp-list which has some items. The text within these items, sometimes exceed the item height. To solve this, I'm using the component amp-fit-text.

This component increase or decrease the font-size, then, the text fits in the container. But this component can do an ellipsis, if I define a min font size. Works fine outside the amp-list, but the min-font-size attribute is not being followed. In this case, the text is being fitted in the content, rather than use the min font size and creates an ellipsis.

I created a fiddle to show both examples: https://jsfiddle.net/po5mwLka/2/

1

There are 1 best solutions below

1
On

This looks like a bug, can you please file an issue here.