CSS3 has text-overflow: ellipsis - should use that instead of FacetLabelTruncationLength
Created attachment 37428 [details] [review] Bug 13212 - Use CSS3 ellipsis instead of FacetLabelTruncationLength - intranet CSS3 has text-overflow: ellipsis - should use that instead of FacetLabelTruncationLength. This patch provides a POC for intranet. It adds ellipsis on all facet types except the availability one. Try to play with facets block size to see ellipsis is correct. See that facet count is hidden when ellipsis is used. An easy way to correct would be to set facet count first.
This a POC to test on intranet facets.
This works, but I don't think it's the right place to use this CSS3 feature. I think it's important for libraries to be able to choose to display the full facet using FacetLabelTruncationLength if they want to, without resorting to custom CSS rules.
(In reply to Owen Leonard from comment #3) > This works, but I don't think it's the right place to use this CSS3 feature. > I think it's important for libraries to be able to choose to display the > full facet using FacetLabelTruncationLength if they want to, without > resorting to custom CSS rules. Agreed, marking WONTFIX for now.