Post milestone3m#395
Open
timea-solid wants to merge 18 commits into
Open
Conversation
The shell's outer `#MainContent` wrapper was a <main>, but each pane also rendered its own <main> (profile-pane, mainPage) or inherited one from solid-ui's tab widget body. That produced multiple <main> landmarks per page, which is invalid per HTML semantics and triggers accessibility warnings. Promote `.app-view` to <main id="MainContent"> so there is exactly one page-level landmark, encompassing the outline view and global dashboard but excluding the application sidebar nav and menu overlay. The skip-link target `#MainContent` is preserved. Paired with: - SolidOS/solid-ui: demote tab-widget body from <main> to <div> - SolidOS/profile-pane: drop inner <main> from ProfileView/EditProfileView Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
When the id `MainContent` was moved from the outer wrapper to
`.app-view`, the existing rule `#MainContent { display: flex }`
started applying to the new element, whose children are
`#OutlineView` and `#GlobalDashboard`. Both became row-direction
flex items and `#GlobalDashboard` collapsed to ~36px wide, so
clicking sidebar items ("Your profile" etc.) rendered the pane
content into an invisible column.
Remove `display: flex` from the `#MainContent` rule (the outer
wrapper was the only thing that needed to be a flex container),
add `min-width: 0` so it still cooperates as a flex child of
`.app-shell`, and update the stale `.app-view` comment.
Also strip the redundant `role="main"` from
`static/browse-test.html` to match `browse.html`.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Contributor
There was a problem hiding this comment.
Pull request overview
This PR updates the databrowser/static browse layout semantics and expands styling theme tokens for newer UI components.
Changes:
- Removes redundant
role="main"from some<main>elements and restructuressrc/databrowser.html. - Adds and adjusts light/dark theme CSS variables for buttons, dialogs, text, borders, and focus styles.
- Tweaks app-shell/main layout styles and utility input/label colors.
Reviewed changes
Copilot reviewed 7 out of 7 changed files in this pull request and generated 7 comments.
Show a summary per file
| File | Description |
|---|---|
static/browse.html |
Removes explicit role="main" from the browse main landmark. |
static/browse-test.html |
Mirrors the browse page landmark update. |
src/styles/themes/light.css |
Adds new light-theme design tokens and adjusts status/border colors. |
src/styles/themes/dark.css |
Adds dark-theme token counterparts and updates dark color values. |
src/styles/mash.css |
Adjusts main/app-shell flex behavior and removes legacy pane CSS blocks. |
src/styles/mash-utilities.css |
Switches input and label text colors to theme variables. |
src/databrowser.html |
Moves the main landmark inside the app shell and wraps live-region behavior. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
| </aside> | ||
|
|
||
| <div class="app-view"> | ||
| <main id="MainContent" class="app-view"> |
Member
Author
There was a problem hiding this comment.
@m5x5 what is your opinion on this?
Remark that now skip-link is not active in the code.
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.