Re:A Pure-CSS Approach to Tabs (2014)
by arunitc on Monday February 22, 2016 @01:45PM
(#11153211)
This breaks the browser back button since each click on the tab heading is a hyperlink
[ Parent
| on HN ]
Re:A Pure-CSS Approach to Tabs (2014)
by rajangdavis on Monday February 22, 2016 @01:58PM
(#11153320)
Which browser are you using? I am using Chrome and the back button worked as expected.
This is a neat little hack!
Re:A Pure-CSS Approach to Tabs (2014)
by bobwaycott on Monday February 22, 2016 @05:13PM
(#11154710)
Mobile Safari back button was borked by this.
Yep. An older CSS-only tabs trick involves using <label>s for hidden radio inputs and toggling visibility with the :checked pseudo class.
From a screen reader supporting standpoint, this :target solution would be better if not for the back button problem.