Hi There,
How exactly do we go about styling something like the undordered list? I don’t see any options to set specify spacing between the list items, or changing the bullet or actually removing it or anything like that.
Cheers,
Gary
Hi There,
How exactly do we go about styling something like the undordered list? I don’t see any options to set specify spacing between the list items, or changing the bullet or actually removing it or anything like that.
Cheers,
Gary
You don’t. That’s the catch ![]()
Hmm, that’s a big catch that is…
Hi - confirming this isn’t currently possible. What would be your usecase for changing styling? If you can provide examples where having this flexibility is needed, that will be helpful to evaluate adding support for this.
Hi Liam,
I have a case where the merchant wants to show the description of the product in the customers order status page. The product in this case is a finished curtain, the description contains the list of measurements and sizes that the customer chose for the curtain to be sewn, and these “attributes” need to be shown to the customer. From the descriptionHTML these are displayed each on a separate line using br tags But showing these with the preact components the HTML is removed showing a list of values without a separator concatenating some of the values together since the br is removed. My first thought was to show elements in an unordered list.. which I did, but the spacing between the elements, and the fact that the styling of the list element can’t be influenced e.g. brs removed, less padding between elements, left margin etc made it look horrible.
I ended up simply making a comma separated list, but stylistically and also for easy scanning of the attributes a list would have made more sense, and 3rdly the react components provided a lot of styling options giving not only the developers but also the merchants who in the end want things to look how they like, way more options than the components currently do.
I know that polaris is extremely opinionated but the react version, while also opinionated, feels like a paradise of possibilities in comparison to the web components.
Cheers,
Gary