I’ve always wondered about this, but never bothered to ask – is there a specific reason you folks never added Link Title Attributes to the V2 Buttons and other linkable elements?
Great question with a short answer: it is not well supported in browsers and its usefulness is severely compromised as a consequence. Basically, it doesn’t really help with SEO and it doesn’t really help with accessibility. The general consensus these days is: “just write good links.” In the case of images, it’d be: “just write good alt text,” haha. Here are some resources on it if you’d like to read a little more:
That little tooltip is pretty much all it’s useful for at this point, and only on desktop browsers. We didn’t include it when we built out the V2 elements due to some of the reasons Kory mentioned. We are planning a “custom attribute” control though - this would allow you to output arbitrary attributes with whatever values you need. The main objective was to allow data attributes for custom javascript integration, but it would technically be a way to get title attributes outputting.
Quit teasing me.
Quit teasing me
Fair enough It’s been on our books since Pro 1.0. Good news is that we’ve cleared a bunch of challenges that add up making it more difficult along the way. I currently have the backlog item slotted under the Layout Builder cycle. Picture this:
- Control looks like the Element CSS button
- Clicking it reveals a popup similar to Dynamic Content, but with a list of items or a + icon when empty.
- Clicking an item navigates to a second panel where you can set the key and value.
We’re pretty close to having the right UI conventions, so it’s just a matter of storing the data and adding it to the root of each element.
Hey everyone,
What about the caption and description fields for media items? I think there should be toggles for these fields to output them on media items when desired.