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 header logo issues #121

Merged
merged 11 commits into from
Jan 6, 2025
Merged

Fix header logo issues #121

merged 11 commits into from
Jan 6, 2025

Conversation

mzayeddfe
Copy link
Contributor

@mzayeddfe mzayeddfe commented Dec 12, 2024

Overview of changes

  • addresses this issue : 63

  • Changed the code for logo images so that they are inverted when clicked/clicked on.
    - Previously this was happening when clicking on the logo:

image
- Now this is what happens

Screenshot 2024-12-11 154852

this is what the logos without transparent background look like:

Screenshot 2024-12-12 101851

  • Added alt text for logo, main link and secondary link. Made it so if links or a logo are being used without an alt text, then an error will occur. Can change this if we want to be more flexible but thought it would be good for encouraging people to take accessibility into account.

  • Changed the following to line up with the change of requiring alt text for logos:

    • run_example function
    • example for the header function
    • added tests to check for alt text and for errors

@mzayeddfe mzayeddfe linked an issue Dec 12, 2024 that may be closed by this pull request
Copy link
Collaborator

@cjrace cjrace left a comment

Choose a reason for hiding this comment

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

All looks good - only suggested changes are minor capitalisation things, some of which weren't even a part of the PR! Should all be quick to accept before you merge in. Nicely done, like the additional test coverage you've added too 😄

R/header.R Outdated Show resolved Hide resolved
R/header.R Outdated Show resolved Hide resolved
R/run_example.R Outdated Show resolved Hide resolved
@mzayeddfe mzayeddfe merged commit 6c46fbc into master Jan 6, 2025
6 checks passed
@mzayeddfe mzayeddfe deleted the fix-header-logo-issues branch January 6, 2025 10:34
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.

Review the way logos and text are added to the header
2 participants