fix(ui): improve CapabilityStatement cards and JSON viewer - #912
Open
somysrivastava wants to merge 1 commit into
Open
fix(ui): improve CapabilityStatement cards and JSON viewer#912somysrivastava wants to merge 1 commit into
somysrivastava wants to merge 1 commit into
Conversation
- scope card layout styles to CapabilityStatement pages - add Collapse all and Expand all controls - support recursive lazy JSON expansion - preserve bounded fragment rendering and scrolling - add focused browser coverage
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.
Summary
Fixes #902.
This PR improves the CapabilityStatement experience in both HFS and HTS by:
Problem
The CapabilityStatement page had inconsistent spacing between cards. In particular:
The Raw CapabilityStatement viewer also had usability issues:
Changes
CapabilityStatement page scope
Added a dedicated
content--capabilityclass to the CapabilityStatement page in both HFS and HTS.CapabilityStatement-specific layout rules are now scoped under this class, including:
Global selectors such as
.content,.card__body,.table-card,.table-wrap, and.tagretain their original behavior on unrelated pages.Raw JSON controls
Added two controls to the shared Raw CapabilityStatement card:
The existing chevron remains unchanged and continues to control only the outer card disclosure.
Behavior:
Scrolling and accessibility
The JSON body now has:
overscroll-behavior: contain.tabindex="0".This allows expanded JSON to be inspected with:
Rendering safety
The existing incremental fragment architecture remains in place.
The implementation continues to:
Tests
Updated CapabilityStatement browser coverage to verify:
Validation
The following checks pass: