Data-attribute: minor mods to warning elements layout

Closes gh-272