Problem/Motivation
SDC is part of core now, so we can migrate the existing code to take advantage of SDC.
Proposed resolution
Plan and move all the components into their own SDCs.
Remaining tasks
The plan for Phase 2 still needs to be defined to refactor and improve the code in the best way possible.
Phase 1 - Create the components
- #3458215: Migrate Toolbar button to SDC
- #3502993: Convert Navigation messages component to SDC
- Toolbar menu (todo: create issue)
- Toolbar block (todo: create issue)
- Toolbar dropdown (todo: create issue)
- Toolbar popover (todo: create issue)
- Tooltip (todo: create issue)
- Admin Toolbar control bar (todo: create issue)
Phase 2 - Javascript and refactor/improvements/make things right
- Events
- Safe triangle refactor
- Tooltip to core
- Break the JS into components: @todo a proposal of specific steps and issues
User interface changes
There shouldn't be UI changes.
Comments
Comment #2
ckrinaNote: I haven’t added as components the following items:
I know @finnsky had ideas to plan Phase 2, so leaving this here so he can work on it.
Comment #3
quietone commentedComment #4
jon nunan commentedBy "components" are we talking Web Component custom elements, or just breaking the functionality up by SDC component?
I'd be a fan of exploring the first option as it would also allow some style encapsulation. I've started playing around with writing my front end themes with more a CUBE CSS (https://cube.fyi/) approach, but I find that often leads to conflicts with admin elements, so having admin elements outside the frontend css with Shadow DOM could be a nice win.
Comment #5
finnsky commentedThank you for your interest.
Specifically in this task we mean SDC Drupal components.
But of course we should keep in mind web components as a promising technology. Especially in the Navigation module because it should look the same in the context of any Drupal theme. (and any basic styles)
If you are interested in web components in the core, then I know two tasks where they can appear (sorry for the off-topic)
https://www.drupal.org/project/drupal/issues/3405822
https://www.drupal.org/project/drupal/issues/3100083
Comment #6
plopescComment #7
m4oliveiThis was added to #3421969: [PLAN] New Navigation and Top Bar to replace Toolbar Roadmap: Path to Stable as 'Should have'. Updating here to reflect that it is now a Navigation stable blocker.