Gunnar Bittersmann: Button als Fließtext

Beitrag lesen

@@Raketenwilli

Wenn Du ein <br> in Deinem Button notierst siehst Du die Katastrophe: Das display: inline wird nicht wie von Dir erwartet umgesetzt.

Ja. Das läuft wohl darauf hinaus, was @MudGuard sagte: „replaced-inline-Element“.

span, role="botton", aria-x="y" und ein paar Zeilen Javascript?

Das läuft darauf hinaus, was @Rolf B sagte. Ob span oder a, ist dann egal.

Geht in meinem Fall nicht (oder nur mit noch viel mehr JavaScript), weil das Ding ein Popover steuern soll. AFAIS funktioniert das Popover-API nur mit <button> (bzw. <input type="button">).

Mit button geht’s, mit a geht’s nicht.

🖖 Live long and prosper

--
In our chants of “ICE out now”
Our city’s heart and soul persists
Through broken glass and bloody tears
On the streets of Minneapolis

— Bruce Springsteen, Streets of Minneapolis