One Screen Size Controller 💍 #278
bennypowers
started this conversation in
Ideas
Replies: 1 comment
-
I've actually implemented an MVP / WIP in #279 |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
A Lemma
so,
rh-table
uses breakpoints fromtokens
rh-pagination
will use breakpoints fromtokens
rh-secondary-nav
will also use breakpoints fromtokens
👉 when it comes to abstractions, 3 uses is a nice jumping-off point
Two Awkward Solutions
as well,
.css
files (novar()
in@media()
)rh-table-responsive.css.ts
, which is ok, but not idealso, what could we do to keep the javascript parts to themselves, while still allowing some semblance of css-firstery in our styles?
Solution:
RHDSScreenSizeController
Straw API:
which renders as
then we could
this would replace:
👼 Pros
.css.ts
😈 Cons
@media()
syntax, bespoke classes may be confusingBeta Was this translation helpful? Give feedback.
All reactions