Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

create cba-select component #42

Open
Manvel opened this issue Mar 26, 2021 · 0 comments
Open

create cba-select component #42

Manvel opened this issue Mar 26, 2021 · 0 comments
Labels
good first issue Good for newcomers

Comments

@Manvel
Copy link
Member

Manvel commented Mar 26, 2021

Background

For the new CBA design we will need a new type of select box which will provide info for each of the separate items. See:

Screen Shot 2021-03-26 at 4 45 33 PM

What to change

Implement new cba-select component, with the information about each of selecting item next to it.

Additional notes

  • The new cba-select element should be WCAG compliant.
  • cba-select will be integrated in cba-table eventually, see -> cba-actions component #44 .
  • Hovering info icon next to each list item should show popup with the information, see screenshot below or refer to the action section in the current CBA version:
  • Selecting item should trigger change event and event may contain new selected item.
  • it should be possible to specify the model using cba-select.items, item should contain:
    • id/value.
    • text one that will be displayed as textContent.
    • tooltip/info, data that will be displayed in the info tooltip.
  • using cba-select.value should be possible to get current value.
  • Ensure that component UI is flexible:
    • If there is not enough space below, open upwards(consider that this item will go into the extension popup).

Tests

  • Ensure to create smoke test with information about how to use the component.
  • Ensure that the functionality explained above are covered by puppeteer where possible(i.e. custom methods, parameters, keyboard and mouse navigation and etc.).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

1 participant