Skip to content

Conversation

@daniel-manta-hee
Copy link
Contributor

@daniel-manta-hee daniel-manta-hee commented Apr 29, 2022

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-expander that has an open attribute. If found, the child nhsuk-details__summary-text displays 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 package https://localhost:44363/node_modules/nhsuk-frontend/packages/components/details/_details.scss lines 154 and 196.

Screenshots

AlwaysShowDescription set to true.

image

AlwaysShowDescription set to false.

image


Developer checks

Checked a list of groups containing some capabilities with AlwaysShowDescription set to true and others set to false.

… overview and supervisor review self assessment to expanders throughout
Copy link
Contributor

@kevwhitt-hee kevwhitt-hee left a 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?

Copy link
Contributor

@kevwhitt-hee kevwhitt-hee left a 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)

@daniel-manta-hee daniel-manta-hee force-pushed the Develop/Features/DLSV2-536-MoveCompetencyDescriptionToExpanders branch 2 times, most recently from a8ef647 to 388d3d6 Compare May 4, 2022 10:09
…nd Details (arrows) for competencies. Prevent error when competency description is null.
kevwhitt-hee and others added 4 commits May 6, 2022 11:58
Copy link
Contributor

@kevwhitt-hee kevwhitt-hee left a 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.

@kevwhitt-hee kevwhitt-hee merged commit 31f73c2 into master May 17, 2022
@kevwhitt-hee kevwhitt-hee deleted the Develop/Features/DLSV2-536-MoveCompetencyDescriptionToExpanders branch May 17, 2022 07:55
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.

3 participants