Gunnar Bittersmann: Button als Fließtext

Beitrag lesen

@@Martin

in der Theorie würde display: contents; das gewünschte visuelle Verhalten herbeiführen. Praktisch ist das aktuell leider (noch) nicht nutzbar.

?? Geht doch: Der Buttontext wird inline dargestellt – mit Zeilenumbruch.

Nur ist das Ding dann kein Button mehr: das Ding ist nicht in der Tab-Reihenfolge und kann nicht per Tastatur bedient werden. (Mausclick geht.)

Also ein <span tabindex="1"> reingesetzt – funktioniert in Safari und Chromia, aber nicht im Firefox.

(Die Ankerpositionierung ging durch display: contents auch verloren, was sich aber leicht beheben lässt, indem man das span als Anker nimmt.)

🖖 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