Custom Classes for Element Metadata


#1

1: What feature / functionality are you looking for?
The ability to add custom classes to items.

image


2: What problem are you trying to solve?

  • Selectively triggering events and actions.
  • Conditionally modifying hrefs for specific elements in certain environments (Facebook Browser, for example).

3: If solved, what value would this provide (ex. increased efficiency, cost savings, etc.)?
This would increase the accuracy of our application logic, and decrease the likelihood of unnecessary consequences thus increasing efficiency and decreasing costs of debugging.


4: Use Case example? (ex. As a ____ I want to be able to _____ so I can _____.)
As a user, I should be able to add additional custom class names to objects via the drag & drop UI so that I can more accurately target elements on the page with scripts (and even some CSS).


5: Is this being solved by another workaround or any other tool today?
We’re just closing our eyes and targeting every button.


Can I add a class to a button?
#2

Update: Everything here is still accurate and we’re still “just closing our eyes and targeting every button”.

We’re also using a similar strategy for images as well now.


#3

I am re-posting a relevant screenshot produced by @Ander
Great screenshot! Now we have two samples of what this could look like.