- 
                Notifications
    
You must be signed in to change notification settings  - Fork 1
 
HEEDLS-562 Add cancel link component and replace back links with it #513
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
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.
LGTM. Just two minor comments.
| <button class="nhsuk-button" type="submit">Save</button> | ||
| </form> | ||
| <vc:back-link asp-controller="RegisterDelegateByCentre" asp-action="@Model.PreviousAction" link-text="Go back" /> | ||
| <vc:cancel-link asp-controller="AllDelegates" asp-action="Index" /> | 
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.
I think this was the only use of PreviousAction, could you remove it from the VM please if there are no other references to it.
| left: -2px; /* 2 */ | ||
| position: absolute; | ||
| top: -1px; /* 3 */ | 
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.
What do the comments mean?
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.
I'd just copied the style from the NHS css for the back link, it has a few comments to describe what they do (basically alignment of the svg)
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.
Looks good to me!
JIRA link
https://softwiretech.atlassian.net/browse/HEEDLS-562
Description
Added a new Cancel Link view component that is the same as the back link, but has a cross instead of the <. Replaced all instances of the Back link component with text Cancel with this component. Also replaced some "< Go back" back links in multi page form journeys with Back buttons.
Screenshots
A few examples. Styling should be the same across all of them



Developer checks
I have: