-
Notifications
You must be signed in to change notification settings - Fork 1
DLSV2-536 Move competency description text in self assessment overview to expanders #1092
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
DLSV2-536 Move competency description text in self assessment overview to expanders #1092
Conversation
… overview and supervisor review self assessment to expanders throughout
…me on the generated html page
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.
Please could we use the alternate details expander implementation: https://service-manual.nhs.uk/design-system/components/details instead of nesting the same style expander which looks odd?
DigitalLearningSolutions.Web/Views/LearningPortal/SelfAssessments/_OverviewTable.cshtml
Outdated
Show resolved
Hide resolved
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.
See comment in code for reverting styles for group expanders. Also, the change to the supervisor interface is missing. From the ticket:
We should also always use the expanders to show the description on the Web/Supervisor/ReviewSelfAssessment.cshtml page, using the logic:
@if (competency.Description != null)
DigitalLearningSolutions.Web/Views/LearningPortal/SelfAssessments/SelfAssessmentOverview.cshtml
Outdated
Show resolved
Hide resolved
a8ef647 to
388d3d6
Compare
…nd Details (arrows) for competencies. Prevent error when competency description is null.
…xpanders' of https://github.com/TechnologyEnhancedLearning/DLSV2 into Develop/Features/DLSV2-536-MoveCompetencyDescriptionToExpanders
…ptionToExpanders' of https://github.com/TechnologyEnhancedLearning/DLSV2 into Develop/Features/DLSV2-536-MoveCompetencyDescriptionToExpanders" This reverts commit 196b847, reversing changes made to 42254be.
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.
Almost there. Two tiny tweaks requires to the razor markup to stop the competency text looking like a heading.
Move the competency description text in the self assessment overview and supervisor review self assessment to expanders throughout.
JIRA link
https://hee-dls.atlassian.net/browse/DLSV2-536
Description
Used same approach applied on ReviewSelfAssessment.cshtml. Added css rules to prevent issue with open and closed icon on the expanders since there are nested expanders and css was confusing parent and child levels.
More details
Before my changes, css was checking for any parent
.nhsuk-expanderthat has anopenattribute. If found, the childnhsuk-details__summary-textdisplays an "open" icon. Problem is, if parent is open, it also displayed open icon for child. Confusing parent with child as it's not designed to work with nested expanders. Existing css rules came from a packagehttps://localhost:44363/node_modules/nhsuk-frontend/packages/components/details/_details.scsslines 154 and 196.Screenshots
AlwaysShowDescriptionset to true.AlwaysShowDescriptionset to false.Developer checks
Checked a list of groups containing some capabilities with AlwaysShowDescription set to true and others set to false.