-
Notifications
You must be signed in to change notification settings - Fork 17
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
Back to top arrow style updated #367
Merged
Merged
Changes from all commits
Commits
Show all changes
11 commits
Select commit
Hold shift + click to select a range
fa46419
Back to top arrow style updated
andysellick b3697a0
Improving back to top arrow appearance
andysellick 845e328
Back to top link restoring translation
andysellick aa9e612
Removing unnecessary svg file, now inline
andysellick 430e678
Use relative height and width so the arrow sizes with the text
NickColley 0b0e94c
Adding back to contents link to another page
andysellick 5ccb39e
Back to contents link added to another template
andysellick f20741a
Fixing contents link positioning in grid
andysellick 8264e2f
Move spacing to parent element so focus padding is not impacted
NickColley 9aa5723
Optimize icon SVG
NickColley 82f4801
Improved class naming for sticky element
andysellick File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,6 @@ | ||
@mixin sidebar-with-body { | ||
.sidebar-with-body { | ||
position: relative; | ||
margin-bottom: $gutter * 1.5; | ||
} | ||
|
||
|
This file contains 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
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,11 @@ | ||
<%= link_to( | ||
t('content_item.contents'), | ||
'#contents', | ||
class: 'back-to-content', | ||
data: { | ||
track_category: 'contentsClicked', | ||
track_action: 'backToContentsLinkClicked', | ||
track_label: 'contents', | ||
module: 'track-click', | ||
}, | ||
) %> | ||
<a class="back-to-content" | ||
data-track-category="contentsClicked" | ||
data-track-action="backToContentsLinkClicked" | ||
data-track-label="contents" | ||
data-module="track-click" | ||
href="#contents"> | ||
<svg class="icon" xmlns="http://www.w3.org/2000/svg" width="13" height="17" viewBox="0 0 13 17"> | ||
<path fill="currentColor" d="M6.5 0L0 6.5 1.4 8l4-4v12.7h2V4l4.3 4L13 6.4z"/> | ||
</svg> | ||
<%= t('content_item.contents') %> | ||
</a> |
This file contains 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
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.
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.
Use of the class name
govuk-sticky-element
hints that it's a component, which it isn't.