-
Notifications
You must be signed in to change notification settings - Fork 3.6k
Use a standard structure for tags for CMS Kit #23924
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
base: rel-10.0
Are you sure you want to change the base?
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull Request Overview
This PR restructures the HTML markup for tag display in the CMS Kit to use a proper unordered list (<ul>) structure instead of loose elements. This provides better semantic HTML and improves accessibility for screen readers.
- Wraps tags in a
<ul>element with flexbox styling for layout - Encapsulates each tag in a
<li>element with margin spacing - Maintains existing styling and functionality for both linked and non-linked tags
Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.
modules/cms-kit/src/Volo.CmsKit.Public.Web/Pages/CmsKit/Shared/Components/Tags/Default.cshtml
Outdated
Show resolved
Hide resolved
| @if (Model.Tags != null) | ||
| { | ||
| <ul class="d-flex flex-wrap"> | ||
| @foreach (var tag in Model.Tags) |
Copilot
AI
Oct 9, 2025
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Corrected spelling of 'standart' to 'standard' in PR title.
| { | ||
| if (Model.UrlFormat.IsNullOrWhiteSpace()) | ||
| { | ||
| <li class="me-1"> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Instead of manually adding margin in elements with me-1, I suggest using gap-1 in the .d-flex container
<ul class="d-flex flex-wrap gap-1">Co-authored-by: Copilot <[email protected]>
Description
Resolves vs-internal-issue-#7448
Checklist