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 the 'When no star ratings on book, UI looks weird #6411' bug #6418

Merged
merged 3 commits into from
Apr 13, 2022

Conversation

Vassilis-Boubis
Copy link
Contributor

@Vassilis-Boubis Vassilis-Boubis commented Apr 12, 2022

Closes #6411

Technical

Testing

Screenshot

Screenshot 2022-04-12 at 11 43 05 PM

Screenshot 2022-04-12 at 11 42 43 PM

Stakeholders

@Vassilis-Boubis Vassilis-Boubis changed the title Vassilis Fix the 'When no star ratings on book, UI looks weird #6411' bug Apr 12, 2022
@mekarpeles mekarpeles added the On testing.openlibrary.org This PR has been deployed to testing.openlibrary.org for testing label Apr 12, 2022
Copy link
Collaborator

@jimchamp jimchamp left a comment

Choose a reason for hiding this comment

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

Headings (<h1>,...,<h6>) are meant to create an outline of the content on a page. Pages are less accessible when headings are used as decorative elements.

@@ -12,6 +12,7 @@
$if (stats_decimal >= 0.5) and (stats_decimal < 1):
$:('<span class="readers-stats__star--half">★</span>')
<span itemprop="ratingValue">$avg</span>
<h4>·</h4>
Copy link
Collaborator

Choose a reason for hiding this comment

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

Suggested change
<h4>·</h4>
<span>·</span>

Let's change this to a span, and update the CSS accordingly. You can assign the span a unique class if it is helpful.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Okey, I will fix it rigth now

Copy link
Collaborator

@jimchamp jimchamp left a comment

Choose a reason for hiding this comment

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

Lgtm! Thanks @Vassilis-Boubis!

@jimchamp jimchamp merged commit b70d6bd into internetarchive:master Apr 13, 2022
@jimchamp jimchamp removed the On testing.openlibrary.org This PR has been deployed to testing.openlibrary.org for testing label Apr 2, 2024
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.

When no star ratings on book, UI looks weird
3 participants