forked from eclipse-apoapsis/ort-server
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(ui): Fix DOM errors for index pages
`CardDescription` component [1] that is copied from `shadcn-ui` wraps the contents inside a `<p>` tag [2], which semantically suggests that only textual content is allowed inside `CardDescription`. W3C also forbids block-level elements inside `<p>` [3]. Fix the DOM errors seen in the browser developer console by moving/removing any block level element from inside `CardDescription`. [1]: https://ui.shadcn.com/docs/components/card [2]: https://github.com/eclipse-apoapsis/ort-server/blob/362912f49a653c24a850bfefb13cb811d3d60597/ui/src/components/ui/card.tsx#L57-L61 [3]: https://www.w3.org/TR/html401/struct/text.html#h-9.3.1 Signed-off-by: Jyrki Keisala <[email protected]>
- Loading branch information
Showing
4 changed files
with
78 additions
and
92 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
This file contains 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
This file contains 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