hackforla / internship

The Internship project provides an opportunity for students to work on open source projects in the fields of software, product development, project management, and UI/UX research and design at LA’s fastest growing Civic Tech non-profit organization during their summer.
GNU General Public License v2.0
17 stars 5 forks source link

TWE Design System Components: Update Dropdown according to M3 #543

Closed karina-sato closed 5 months ago

karina-sato commented 9 months ago

Overview

We need to update the components to match M3 Material Design guidelines style

Action Items

Resources/Instructions

karina-sato commented 8 months ago

To be discussed in the Design Meeeting: open and close shouldn't be a class... Classes may the the different variants. In states we can showcase the open/close state:

image
mklmrgn commented 7 months ago

Material design does not use "Dropdowns". They just call them menus, as a number of different bases or elements can be clicked on to have a menu drop down.

Screen Shot 2024-03-28 at 8 29 05 AM



ATOMS - I started by making a Menu Item component with different states (enabled, hovered, etc). These are the building blocks of the menu. Divider, Left icon/element, Content, and Right icon can all be modified or hidden.

Screen Shot 2024-03-28 at 8 34 19 AM

Then I made a Menu Container with the right shadow style, padding, etc. Menu Containers have as many menu items added as you need.

Screen Shot 2024-03-28 at 8 39 45 AM

Some general MENU TYPES with different applications:

Screen Shot 2024-03-28 at 8 51 34 AM

DROPDOWN BASES

Modifyinig our current textfields, I made a component for a dropdown textfield base, using two types: With Text input (for autocomplete) and No Text Input.

Screen Shot 2024-03-28 at 8 48 21 AM

COMBINATIONS/CONFIGURATIONS (so far)

Screen Shot 2024-03-28 at 8 54 14 AM Screen Shot 2024-03-28 at 8 54 21 AM Screen Shot 2024-03-28 at 8 54 29 AM
ExperimentsInHonesty commented 7 months ago

At the all team meeting, Michael demonstrated the modularity. We will need specific models (one with check boxes, radio button, > for additional drop downs)

mklmrgn commented 7 months ago

Specific combos / models

Screen Shot 2024-04-11 at 10 11 52 AM Screen Shot 2024-04-11 at 10 03 48 AM

Phone Number Options

Screen Shot 2024-04-11 at 10 05 10 AM Screen Shot 2024-04-11 at 10 06 12 AM Screen Shot 2024-04-11 at 10 06 45 AM
mklmrgn commented 6 months ago

Updated Building Block Components for Dropdowns/Menus

Dropdown Base consisting of two types:

  1. Dropdown Bases that don't use inputs
  2. Dropdown Bases where menus appear while user is typing (ie autoselect)
Screen Shot 2024-04-25 at 8 24 19 AM



Menu Items

Menu items are the building blocks of the Menu. Divider, Left icon/element, Content, and Right icon can all be modified or hidden.

Screen Shot 2024-04-25 at 8 57 18 AM



Menus (Container + Menu Items)

Menus consist of a Container and Menu Items. Menu items can be added or removed. There are 2 basic variants, but the menu can be customized at the Menu Item level (including making dividers visible)

Screen Shot 2024-04-25 at 8 24 47 AM



Completed Design System Info/Specs

Screen Shot 2024-04-25 at 8 27 26 AM



Created Specific Configurations/Example Components for Dropdowns/Menus

Radio Button Dropdown and Checkbox Dropdown

Screen Shot 2024-04-25 at 8 25 38 AM



Phone Number with Country Code Dropdown

These can be used for forms with phone number inputs where the user needs to select a country code. User clicks the arrow and menu appears. There are different variants for using a flag icon on number only.

Screen Shot 2024-04-25 at 8 26 02 AM



Completed Design System Info/Specs

Screen Shot 2024-04-25 at 8 28 37 AM
mklmrgn commented 6 months ago

Created Microsite https://www.figma.com/file/TTRS2FWXsrymHYpPJL1IdH/Internship-Team-Main-file?type=design&node-id=5602%3A3518&mode=design&t=2aQ43D9akbBNFzTb-1

Screen Shot 2024-05-09 at 10 51 12 AM

Screen Shot 2024-05-09 at 10 51 30 AM

Screen Shot 2024-05-09 at 10 51 49 AM

Screen Shot 2024-05-09 at 10 52 02 AM

Screen Shot 2024-05-09 at 10 52 17 AM

ExperimentsInHonesty commented 6 months ago

@mklmrgn Karina said you were waiting for Josh to review this. Please leave a comment on your issue @ messaging him with specifics of what you need (e.g., Design is ready for Dev final review before we close this issue), then put the issue in the questions column, with the label ready for dev lead

mklmrgn commented 5 months ago

@joshfishman Design is ready for final review:

Components in Design System https://www.figma.com/design/TTRS2FWXsrymHYpPJL1IdH/Internship-Team-Main-file?node-id=5629%3A16253&t=1gzt19GBSbnoaF8h-1
Screen Shot 2024-05-20 at 3 48 04 PM
Microsite https://www.figma.com/design/TTRS2FWXsrymHYpPJL1IdH/Internship-Team-Main-file?node-id=5629%3A18805&t=1gzt19GBSbnoaF8h-1
Screen Shot 2024-05-20 at 4 00 02 PM

joshfishman commented 5 months ago

This looks great thanks!