-
Notifications
You must be signed in to change notification settings - Fork 20
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
New options for contents-list component #4305
Merged
Merged
Conversation
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
matthillco
force-pushed
the
contents-list-landing-page-variant
branch
from
October 15, 2024 14:45
6e131a3
to
3b38fa3
Compare
matthillco
changed the title
Create variant of contents-list component for landing page navigation
New options for contents-list component
Oct 15, 2024
matthillco
force-pushed
the
contents-list-landing-page-variant
branch
from
October 15, 2024 15:47
3b38fa3
to
ce338c8
Compare
jon-kirwan
reviewed
Oct 15, 2024
app/assets/stylesheets/govuk_publishing_components/components/_contents-list.scss
Outdated
Show resolved
Hide resolved
app/assets/stylesheets/govuk_publishing_components/components/_contents-list.scss
Outdated
Show resolved
Hide resolved
andysellick
reviewed
Oct 16, 2024
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.
Nice. A few suggestions for you. Also remember a CHANGELOG entry.
app/assets/stylesheets/govuk_publishing_components/components/_contents-list.scss
Outdated
Show resolved
Hide resolved
app/views/govuk_publishing_components/components/docs/contents_list.yml
Outdated
Show resolved
Hide resolved
app/views/govuk_publishing_components/components/docs/contents_list.yml
Outdated
Show resolved
Hide resolved
app/views/govuk_publishing_components/components/docs/contents_list.yml
Outdated
Show resolved
Hide resolved
app/assets/stylesheets/govuk_publishing_components/components/_contents-list.scss
Outdated
Show resolved
Hide resolved
app/views/govuk_publishing_components/components/_contents_list.html.erb
Outdated
Show resolved
Hide resolved
matthillco
force-pushed
the
contents-list-landing-page-variant
branch
from
October 16, 2024 09:48
ce338c8
to
b51dd71
Compare
matthillco
force-pushed
the
contents-list-landing-page-variant
branch
from
October 16, 2024 12:07
a67fa01
to
0e4a79e
Compare
matthillco
force-pushed
the
contents-list-landing-page-variant
branch
from
October 16, 2024 13:55
0e4a79e
to
c525784
Compare
andysellick
reviewed
Oct 16, 2024
app/assets/stylesheets/govuk_publishing_components/components/_contents-list.scss
Outdated
Show resolved
Hide resolved
app/assets/stylesheets/govuk_publishing_components/components/_contents-list.scss
Outdated
Show resolved
Hide resolved
matthillco
force-pushed
the
contents-list-landing-page-variant
branch
from
October 16, 2024 15:41
c525784
to
201be68
Compare
matthillco
force-pushed
the
contents-list-landing-page-variant
branch
from
October 16, 2024 16:04
201be68
to
0de1d6f
Compare
Hi @andysellick I've fixed all your requests, hopefully this can be merged now. |
andysellick
reviewed
Oct 17, 2024
app/views/govuk_publishing_components/components/_contents_list.html.erb
Show resolved
Hide resolved
app/assets/stylesheets/govuk_publishing_components/components/_contents-list.scss
Outdated
Show resolved
Hide resolved
matthillco
force-pushed
the
contents-list-landing-page-variant
branch
from
October 17, 2024 09:00
0de1d6f
to
cd6ee5f
Compare
matthillco
force-pushed
the
contents-list-landing-page-variant
branch
from
October 17, 2024 09:15
cd6ee5f
to
4819022
Compare
This was previously missing from this component and is added to meet our coding standards.
A new option for the contents-list component that can be used to apply a different line style: - No left hand indent - No dashes - Increased vertical space between lines - Different active style: bold blue text & blue vertical left border This option is only effective if the component instance uses active links.
matthillco
force-pushed
the
contents-list-landing-page-variant
branch
from
October 17, 2024 09:24
4819022
to
fc03300
Compare
andysellick
approved these changes
Oct 17, 2024
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.
👏
Merged
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.
What
Two new options for the
contents-list
component:alternative_line_style
title
These can be used to format the list as a navigation block on landing pages. Trello
Why
Landing pages have a navigation element in a sidebar. This navigation element can use the
contents-list
component. However, there are additional requirements which require new options:Visuals