mysterious-toddler-20573
02/11/2022, 10:22 PMbland-coat-6833
02/11/2022, 10:23 PMgorgeous-airport-54386
02/11/2022, 10:24 PMcss
.foo {
& .bar {
/* the & is mandatory */
}
@nest .baz + & {
/* @nest needed if & not at start */
}
}
gorgeous-ghost-95789
02/11/2022, 10:31 PMgorgeous-airport-54386
02/11/2022, 10:32 PM@nest
mysterious-toddler-20573
02/11/2022, 10:34 PMmysterious-toddler-20573
02/11/2022, 10:45 PMmysterious-toddler-20573
02/11/2022, 10:45 PMgorgeous-airport-54386
02/11/2022, 10:48 PMhtml
> <div role="tab">
> <a href="/foo">Tab 1</a>
> <a href="/foo">Tab 2</a>
> <a href="/foo">Tab 3</a>
> </div>
>
> We would like to explore using the role attribute for this.
html
<div role="tablist">
<a role="tab" href="/foo">Tab 1</a>
<a role="tab" href="/foo">Tab 2</a>
<a role="tab" href="/foo">Tab 3</a>
</div>
mysterious-toddler-20573
02/11/2022, 10:48 PMmysterious-toddler-20573
02/11/2022, 10:49 PMgorgeous-airport-54386
02/11/2022, 10:49 PMmysterious-toddler-20573
02/11/2022, 10:49 PMtablist
or tabs
or something like that though, that's a typomysterious-toddler-20573
02/11/2022, 10:52 PMmysterious-toddler-20573
02/11/2022, 10:52 PMgorgeous-airport-54386
02/11/2022, 10:54 PMrole
is not an arbitrary string, it does stuff. and if you don't put the correct roles on things it will not be recognized as a valid tab listmysterious-toddler-20573
02/11/2022, 10:55 PMmysterious-toddler-20573
02/11/2022, 10:56 PMgorgeous-airport-54386
02/11/2022, 10:57 PMgorgeous-airport-54386
02/11/2022, 10:58 PMgorgeous-airport-54386
02/11/2022, 10:58 PMmysterious-toddler-20573
02/11/2022, 10:58 PMmysterious-toddler-20573
02/11/2022, 10:58 PMmysterious-toddler-20573
02/11/2022, 10:59 PMgorgeous-airport-54386
02/11/2022, 10:59 PMmysterious-toddler-20573
02/11/2022, 10:59 PMgorgeous-airport-54386
02/11/2022, 10:59 PMgorgeous-airport-54386
02/11/2022, 11:00 PMarticle > aside
, which is very incorrectmysterious-toddler-20573
02/11/2022, 11:00 PMgorgeous-airport-54386
02/11/2022, 11:00 PMli > article