Hi, here’s an extract of code for the link HTML helper
link("navigate_before",
[ {:"aria-label", "scroll back button"},
to: "#",
class: ["mdc-tab-bar-scroller__indicator__inner", " ",
"material-icons"] ] )
There are a couple of things that may suggest I’m making life harder for myself than I need to.
The first is the keyword list. I’ve had to use the full tuple syntax for the aria-label because it contains the “-” character. Therefore, I’ve put it first in the list to avoid curly bracketing all the tuples in the list.
The second is the class list. When I have more than one class I’m having to include an empty class in order to separate the class names in the rendered html.
As I said, am I doing a couple of dumb things?