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

Fix various SpecialReportAlt bugs #26003

Merged
merged 6 commits into from
Mar 23, 2023

Conversation

ioannakok
Copy link
Contributor

@ioannakok ioannakok commented Mar 22, 2023

What does this change?

Fixes various visual bugs in SpecialReportAlt fronts cards:

Does this change need to be reproduced in dotcom-rendering ?

Screenshots

This is a more general screenshot but more detailed can be found in PR comments.

Before After
image image

What is the value of this and can you measure success?

Checklist

Does this affect other platforms?

  • AMP
  • Apps
  • Other (please specify)

Does this affect GLabs Paid Content Pages? Should it have support for Paid Content?

  • No
  • Yes (please give details)

Does this change break ad-free?

  • No
  • It did, but tests caught it and I fixed it
  • It did, but there was no test coverage so I added that then fixed it

Does this change update the version of CAPI we're using?

Accessibility test checklist

Tested

  • Locally
  • On CODE (optional)

@@ -415,7 +415,7 @@ $pillars: (
background-color: $special-report-alt-faded;

.fc-item__container.u-faux-block-link--hover {
background-color: darken($special-report-alt-faded, 2%);
background-color: darken($special-report-alt-pastel, 5%);
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Hover state of feature

Before After
image image
image image

.fc-item--pillar-special-report-alt {
.fc-item__meta {
.inline-icon {
fill: $special-report-alt-dark;
Copy link
Contributor Author

@ioannakok ioannakok Mar 23, 2023

Choose a reason for hiding this comment

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

SVGs in meta (like the clock and the comment bubble) outside the palette

Before After
image image
image image

.fc-item__timestamp,
.fc-trail__count--commentcount {
background-color: darken($special-report-alt-pastel, 5%);

Copy link
Contributor Author

@ioannakok ioannakok Mar 23, 2023

Choose a reason for hiding this comment

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

Type comment with pillar news and special-report-alt (non-hover & hover)

Before After
image image
image image

}
}

.fc-item--pillar-special-report-alt {
.fc-item__container > .fc-item__meta {
@include multiline(3, rgba(60, 60, 60, .3));
@include multiline(3, rgba(112, 112, 112, .3));
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Fixes the grey lines for opinion cards to be the same grey as all the lines / borders in the palette

@@ -11,3 +11,4 @@
@include overide-interview-headline-colours(arts, $culture-dark, $culture-pastel);
@include overide-interview-headline-colours(lifestyle, $lifestyle-dark, $news-pastel);
@include overide-interview-headline-colours(special-report, #ffffff, #ffffff);
@include overide-interview-headline-colours(special-report-alt, $special-report-alt-dark, $special-report-alt-dark);
Copy link
Contributor Author

@ioannakok ioannakok Mar 23, 2023

Choose a reason for hiding this comment

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

Before After
image image


@if $pillar == special-report-alt {
background-color: darken($color1, 2%);
background-color: darken($special-report-alt-pastel, 5%);
} @else {
background-color: darken($color1, 5%);
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Duplicate code


@if $pillar == special-report-alt {
background-color: darken($color1, 2%);
background-color: darken($special-report-alt-pastel, 5%);
Copy link
Contributor Author

@ioannakok ioannakok Mar 23, 2023

Choose a reason for hiding this comment

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

Before After
image image

@@ -121,7 +121,7 @@

&:hover,
.u-faux-block-link--hover {
background-color: darken($special-report-alt-faded, 2%);
background-color: darken($special-report-alt-pastel, 5%);
Copy link
Contributor Author

@ioannakok ioannakok Mar 23, 2023

Choose a reason for hiding this comment

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

Before After
image image

@ioannakok ioannakok force-pushed the ioanna/various-special-report-alt-bugs branch from 4bc000e to b47b675 Compare March 23, 2023 02:54
@ioannakok ioannakok marked this pull request as ready for review March 23, 2023 10:59
@ioannakok ioannakok requested a review from a team as a code owner March 23, 2023 10:59
@ioannakok ioannakok changed the title Ioanna/various special report alt bugs Fix various SpecialReportAlt bugs Mar 23, 2023
Copy link
Contributor

@bryophyta bryophyta left a comment

Choose a reason for hiding this comment

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

this looks good to me!

@prout-bot
Copy link
Collaborator

Seen on FRONTS-PROD, ADMIN-PROD (merged by @ioannakok 20 minutes and 43 seconds ago)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants