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

Update: Hotgraphic pin number inherits from the icon styles (fixes #282) #455

Merged
merged 1 commit into from
Jul 20, 2023

Conversation

kirsty-hames
Copy link
Contributor

@kirsty-hames kirsty-hames commented Jul 18, 2023

Fixes adaptlearning/adapt-contrib-hotgraphic#282

Subject of the enhancement

With the current implementation (PR #281), the visited state pin displays larger than the unvisited number. The visited state inherits from @icon-size (1.5rem) whereas the number pin inherits from @body-size (1rem).

current_numbers

In this PR, .hotgraphic__pin-number inherits the icon styles for consistent pin number and visited state. See screenshot below.

numbers_inherit_from_icon

Testing PR

Set _useNumberedPins: true for Hotgraphic and select the pins. Set "_isNarrativeOnMobile": false, to review PR on mobile.

...to inherit from icon instead of body text for consistent pin size
Copy link
Contributor

Choose a reason for hiding this comment

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

👀

Copy link
Contributor

@guywillis guywillis left a comment

Choose a reason for hiding this comment

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

👀

Copy link
Contributor

@swashbuck swashbuck left a comment

Choose a reason for hiding this comment

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

👍

@kirsty-hames kirsty-hames merged commit 6abf34f into master Jul 20, 2023
1 check passed
@kirsty-hames kirsty-hames deleted the issue/hotgraphic-282 branch July 20, 2023 08:13
@github-actions
Copy link

🎉 This PR is included in version 9.8.0 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

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.

Should item pin number inherit from the icon styles?
4 participants