Skip to content
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

Add text list to image card #2286

Merged
merged 1 commit into from
Aug 26, 2021
Merged

Add text list to image card #2286

merged 1 commit into from
Aug 26, 2021

Conversation

chris-gds
Copy link
Contributor

@chris-gds chris-gds commented Aug 26, 2021

What

Should links within extra_links not be provided to the image_card this will then fallback to render a text element list in grey (secondary text colour)

Why

As part of this PR the Design uses an image_card however this particular visual does not exist within the context of the image_card component. This update extends the image_card to provide additional variations to accommodate this new visual

Consider this Design:

image

Visual Changes

Additional option visual:

image

@bevanloon bevanloon temporarily deployed to govuk-publis-change-ext-hg01kg August 26, 2021 07:28 Inactive
@chris-gds chris-gds changed the title Add text list to image_card Add text list to image card Aug 26, 2021
@bevanloon bevanloon temporarily deployed to govuk-publis-change-ext-hg01kg August 26, 2021 07:31 Inactive
@bevanloon bevanloon temporarily deployed to govuk-publis-change-ext-hg01kg August 26, 2021 07:36 Inactive
@chris-gds chris-gds marked this pull request as ready for review August 26, 2021 07:44
@chris-gds chris-gds requested review from jon-kirwan and maxgds August 26, 2021 07:45
Copy link
Contributor

@andysellick andysellick left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Couple of small comments, but otherwise looks good 👍

CHANGELOG.md Show resolved Hide resolved
spec/components/image_card_spec.rb Outdated Show resolved Hide resolved
Should a link not be provided to the "extra_links" property then it will fallback to a text list that uses the secondary grey text colour.
@bevanloon bevanloon temporarily deployed to govuk-publis-change-ext-hg01kg August 26, 2021 08:27 Inactive
@chris-gds chris-gds merged commit 60154be into master Aug 26, 2021
@chris-gds chris-gds deleted the change-extra-links branch August 26, 2021 08:33
@chris-gds chris-gds mentioned this pull request Aug 26, 2021
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