react-tooltip icon indicating copy to clipboard operation
react-tooltip copied to clipboard

Add `tooltip` to every `data-` attribute

Open FreePhoenix888 opened this issue 2 years ago • 0 comments

data-type and such type of attributes can be reserved for app. It would be great to separate attributes for this library from other libraries' attributes. Of course, it is better to not use data-type at all and name it like more describing why it is used data-modal-type, data-smth-type and so on. Reason:

data-type on button? 🤔 Why is it used? Is it a type of a button? Is it a...

So I offer to rename attributes this way:

  • data-type -> data-tooltip-type
  • data-effect -> data-tooltip-effect

FreePhoenix888 avatar Oct 02 '21 12:10 FreePhoenix888