DEV Community

Discussion on: Simple Drag and Drop in Ember Octane

Collapse
 
rstudner profile image
Roger Studner

Randomly curious why role="button" showed up mid-post.

Thanks so much for this content!

Collapse
 
dgavey profile image
Derek Gavey • Edited

Ah, mostly that was a copy and paste from the github code I made for this project. Having a role="button", keeps the linter quiet. It's important to define roles on elements without implied actions (like <button>) for screen readers and other accessibility reasons.

It's not required for any drag specific results though.