Giter Site home page Giter Site logo

Visual components about frontend HOT 7 CLOSED

18f avatar 18f commented on August 17, 2024
Visual components

from frontend.

Comments (7)

meiqimichelle avatar meiqimichelle commented on August 17, 2024 1

Hi @vipero07 ! Many of our sites don't use frameworks, and we're always trying to reduce third-party dependencies where we can. We like to keep it simple :) So, we're aiming to have modular components with accessibility/508 built to our team standards ready to use across any of our projects, no matter what framework (or not) they're using.

You're right though — Bootstrap and similar do a really nice job of making it easy to get up and running fast!

from frontend.

meiqimichelle avatar meiqimichelle commented on August 17, 2024

+1

from frontend.

vipero07 avatar vipero07 commented on August 17, 2024

Just wondering, wouldn't bootstrap, material design lite, or similar style packages cover some of these? Both have a responsive table implementation and both use a grid layout for positioning. Plus tons of developers have used bootstrap before, it would be pretty easy for any newcomer to pickup and help on different projects. Even for those who haven't it has a ton of documentation making implementation pretty simple. The most difficult part would be making a table infinite scroll in either direction, but that could be done using some javascript library like react.js ember or angular to make the components and pull out nonvisible dom tags and put in the soon to be visible ones. Something like this https://github.com/seatgeek/react-infinite

from frontend.

maya avatar maya commented on August 17, 2024

@shawnbot we started to work on basic tables here: uswds/uswds#249 Having some more features like you mentioned would be cool.

+1 Charts - we heard this being wanted during our research for the pattern library, but it was not a heavily requested enough feature to work on for this round. But we'd be happy to include them.

I think a USA map tile would be super cool. We've also picked our colors for the pattern library so would be neat to use colors from our family.

from frontend.

shawnbot avatar shawnbot commented on August 17, 2024

@maya of course I'm thinking that custom elements might be a good way to do the progressive enhancement. E.g.

<table is="awesome-table" sortable="true" fixed-header="true">
</table>

Then the custom element would handle listening for click events on headers (maybe with event delegation, so you could add and remove headers at will) and listen for scroll and resize window events to manage the fixed header.

from frontend.

maya avatar maya commented on August 17, 2024

@shawnbot for tables, what were you thinking for "make them behave well on mobile"? Something like Tablesaw by Filament Group? https://github.com/filamentgroup/tablesaw

from frontend.

shawnbot avatar shawnbot commented on August 17, 2024

@maya yeah, Tablesaw is sweet. I like that it works declaratively with attributes, rather than having to address each table with jQuery.

from frontend.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.