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

Course has ended sticky alert padding causes UI bug with exercise anchor links #1318

Merged
merged 1 commit into from
Jan 26, 2024

Conversation

khattam2
Copy link
Contributor

Fixes #1311

Description

What?

Course has ended sticky alert padding causes UI bug with exercise anchor links

Why?

Exercises now result in a weird exercise frame UI bug after scrolling up:

How?

padding-top has been changed to margin-top

Testing

image

Remember to add or update unit tests for new features and changes.

What type of test did you run?

  • Accessibility test using the WAVE extension.
  • Django unit tests.
  • Selenium tests.
  • Other test. (Add a description below)
  • Manual testing.

[ADD A DESCRIPTION ABOUT WHAT YOU TESTED MANUALLY]

Did you test the changes in

  • Chrome
  • Firefox
  • This pull request cannot be tested in the browser.

Think of what is affected by these changes and could become broken

Translation

Programming style

  • Did you follow our style guides?
  • Did you use Python type hinting in all functions that you added or edited? (type hints for function parameters and return values)

Have you updated the README or other relevant documentation?

  • documents inside the doc directory.
  • README.md.
  • Aplus Manual.
  • Other documentation (mention below which documentation).

Is it Done?

  • Reviewer has finished the code review
  • After the review, the developer has made changes accordingly
  • Customer/Teacher has accepted the implementation of the feature

Clean up your git commit history before submitting the pull request!

@ihalaij1 ihalaij1 self-requested a review January 26, 2024 09:44
@ihalaij1 ihalaij1 self-assigned this Jan 26, 2024
@ihalaij1 ihalaij1 force-pushed the sticky_alert_padding branch 2 times, most recently from 87191f3 to 6a2022f Compare January 26, 2024 11:02
@ihalaij1 ihalaij1 force-pushed the sticky_alert_padding branch from 6a2022f to 958e0f1 Compare January 26, 2024 11:04
Copy link
Contributor

@ihalaij1 ihalaij1 left a comment

Choose a reason for hiding this comment

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

I edited the code so it doesn't use margin-top or padding-top at all.

Instead, it now waits until all AJAX requests have finished and then scrolls the page the height of the sticky alert, so that the content under it is no longer obscured.

@ihalaij1 ihalaij1 merged commit 700d596 into apluslms:master Jan 26, 2024
8 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

'Course has ended' sticky alert padding causes UI bug with exercise anchor links
2 participants