https://htmx.org logo
Join Discord
Powered by
# missing_dot_css
  • g

    gorgeous-airport-54386

    02/11/2022, 11:01 PM
    but that will stop people using article when it's correct but shouldn't be a card
  • m

    mysterious-toddler-20573

    02/11/2022, 11:01 PM
    perhaps a "cancel" class?
  • g

    gorgeous-airport-54386

    02/11/2022, 11:01 PM
    i.e. in a blog post page, you don't want the whole thing to be wrapped in a card
  • m

    mysterious-toddler-20573

    02/11/2022, 11:01 PM
    I think we can be a little opinionated but let people opt out
  • m

    mysterious-toddler-20573

    02/11/2022, 11:01 PM
    OK
  • g

    gorgeous-airport-54386

    02/11/2022, 11:01 PM
    i think li>article is a good option
  • m

    mysterious-toddler-20573

    02/11/2022, 11:02 PM
    Does that let you lay out cards horizontally? (A common occurrence from what I have seen)
  • g

    gorgeous-airport-54386

    02/11/2022, 11:04 PM
    also:
    Copy code
    css
    ul, ol {
      &[role="list"] {
        margin-left: 0;
        list-style: none;
      }
    }
    https://piccalil.li/blog/a-modern-css-reset/
  • m

    mysterious-toddler-20573

    02/11/2022, 11:08 PM
    That is saying that a
    <ul role='list' ...
    should not do vertical list styling, right?
  • g

    gorgeous-airport-54386

    02/11/2022, 11:08 PM
    yep
  • g

    gorgeous-airport-54386

    02/11/2022, 11:08 PM
    it's a trick
  • m

    mysterious-toddler-20573

    02/11/2022, 11:08 PM
    Roger, OK
  • g

    gorgeous-airport-54386

    02/11/2022, 11:09 PM
    some browsers will detect lists with removed styling and remove list semantics from them
  • m

    mysterious-toddler-20573

    02/11/2022, 11:09 PM
    Can I ask you to take a pass over the concepts.md file and fix things up the way you think they should be?
  • g

    gorgeous-airport-54386

    02/11/2022, 11:09 PM
    this prevents that while also giving a convenient way to remove bullets
  • g

    gorgeous-airport-54386

    02/11/2022, 11:09 PM
    on it
  • m

    mysterious-toddler-20573

    02/11/2022, 11:10 PM
    I think getting a strong "this is what we want" will help a ton for recruiting the right talent for the project 🙏
  • m

    mysterious-toddler-20573

    02/11/2022, 11:13 PM
    High level statement: A CSS library that starts with good default styling, akin to classless CSS libraries, that offers purely semantic HTML components, utilizing ARIA where appropriate and, finally, where tweaks are needed, offers a small & curated set of class-based utilities.
  • m

    mysterious-toddler-20573

    02/11/2022, 11:13 PM
    We want users to have to go beyond bog-standard HTML as little as possible, but no littler
  • b

    bland-coat-6833

    02/11/2022, 11:22 PM
    The ARIA stuff has me curious but also a little worried. As it says here: https://developer.mozilla.org/en-US/docs/Web/Accessibility/ARIA “No ARIA is better than bad ARIA”
  • g

    gorgeous-airport-54386

    02/11/2022, 11:23 PM
    we'd only use ARIA for things where it's easy enough to detect correct usage through CSS selection. Tabs are pretty fixed in their structure
  • s

    swift-translator-13366

    02/11/2022, 11:24 PM
    This is a very powerful way to state it, IMHO! Until now the messaging has been a bit muddy regarding where to draw the line (80/20 is very subjective — my 80% may not match yours)
  • m

    mysterious-toddler-20573

    02/11/2022, 11:42 PM
    I trust Deniz to determine good ARIA, and if we do this right, we should be able to drive even accessibility idiots (this guy, right here) to do the right thing
  • g

    gorgeous-airport-54386

    02/11/2022, 11:42 PM
    jusr pushed some changes to concepts.md
  • g

    gorgeous-airport-54386

    02/11/2022, 11:42 PM
    please object
  • m

    mysterious-toddler-20573

    02/11/2022, 11:43 PM
    I do not object
  • g

    gorgeous-ghost-95789

    02/12/2022, 12:00 AM
    One thought here, and I’m not exactly sure how to implement this:
  • g

    gorgeous-ghost-95789

    02/12/2022, 12:01 AM
    There are many ways that layouts could be organized. Rows, columns, grids, cards, etc.
  • g

    gorgeous-ghost-95789

    02/12/2022, 12:03 AM
    I like the goal of having the CSS "do the right thing" as much as possible, but I also like the idea of being able to switch out layouts relatively easily (as in, a series of buttons with hyperscript that says
    on click set .large-columns on my parent
    )
  • g

    gorgeous-ghost-95789

    02/12/2022, 12:03 AM
    Perhaps there are places where semantic-ish classes could be used to make large-scale decisions about the way content is presented, which then trickle down to all of the sub-elements on the page.
12345...44Latest