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

DTGB-903: Add proper ID & class to content region when it contains filter results #993

Merged
merged 2 commits into from
Mar 20, 2024

Conversation

zero2one
Copy link
Collaborator

Description

The Gent Style Guide defines a "result" ID on the section containing the filtered items overview. This is missing from the content section.

Motivation and Context

  • The ID is needed so we can point the browser direct to the proper section when a filter is added or removed.
  • The class "result-section" should only be added to the content region when it contains filtered overview.

How Has This Been Tested?

Added and tested on the Program overview of the Gentsefeesten website.

Screenshots (if appropriate):

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)

Checklist:

  • I have read the CONTRIBUTING document.
  • I have updated the documentation accordingly.
  • I have updated the gent_base CHANGELOG accordingly.

The content region should have the proper `result` ID and
`result-section` class when it contains a filtered overview.
Filtered overviews can be detected when the `filters` region is within
the page content.
- Code style.
- Unused variable.
- Unknown class `Element` (was not in use list).
@zero2one zero2one requested review from SvenVdv and lennartvava March 19, 2024 14:13
@zero2one zero2one merged commit ca6d562 into 6.x Mar 20, 2024
@zero2one zero2one deleted the feature/DTGB-903 branch March 20, 2024 08:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants