Giter Site home page Giter Site logo

Comments (6)

ademarco avatar ademarco commented on June 12, 2024 1

I would actually add a weight field to the definition, what do your think?

from ui_patterns.

ademarco avatar ademarco commented on June 12, 2024

The I was also thinking to introduce tags on pattern definitions so that we can tag patterns and print better overview pages.

Also tags will be useful to propose patterns by contexts (which will be expressed with tags) so that we don't have a button pattern proposed as a page layout etc.

from ui_patterns.

aleksip avatar aleksip commented on June 12, 2024

I like the tags idea, weight could be hard work to update if there are many patterns? So maybe first sort by tags, then final sort by label alphabetically? :)

Maybe the tags could create a hierarchy, so when e.g. using atomic design principles one could tag a pattern with molecules, text and it would go in top level molecules group and in a text subgroup?

from ui_patterns.

kclarkson avatar kclarkson commented on June 12, 2024

I Love the idea of tags and weights. I would like to suggest that we add a weight to the tags. This way if I want to use atomic design great. But if I want to roll my own design structure I can decide which tags should receive a higher or lower weight.

from ui_patterns.

ademarco avatar ademarco commented on June 12, 2024

Yes we could use the same way Symfony uses tags on services, with weights and all.

from ui_patterns.

drclaw avatar drclaw commented on June 12, 2024

I wonder if using Drupal\Component\Plugin\CategorizingPluginManagerInterface and Drupal\Core\Plugin\CategorizingPluginManagerTrait is a place to start? Provides one level of categorization as well as label sorting out of the box and could be extended beyond that?

Initial implementation would look something like drclaw@fd94b87

from ui_patterns.

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.