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
13 stars 4 forks source link

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

Open karina-sato opened 2 months ago

karina-sato commented 2 months ago

Overview

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

Action Items

Resources/Instructions

karina-sato commented 2 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 1 month 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 4 weeks 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 2 weeks 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 2 days 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