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

Revert "Issue #358: Added some extra styling for outage icons" #360

Closed

Conversation

djarran
Copy link
Contributor

@djarran djarran commented Jan 30, 2025

Description: Revert #359. The changes affect the icon sizes when used in previous Moodle versions:

Before commit:

image

After commit (in both 3.9 and 4.1):
image

Copy link
Contributor

@bwalkerl bwalkerl left a comment

Choose a reason for hiding this comment

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

Thanks @djarran

The code here is fine, but I'm a bit torn about the revert. It seems to be a balancing act of 4.5 being very broken vs older versions having slightly larger icons. This issue still requires further attention, but as this isn't very noticeable to non-admin users I think it might be better to leave it as is until we get a proper fix?

But in saying that I'm happy to merge if you feel strongly about this.

@djarran
Copy link
Contributor Author

djarran commented Jan 30, 2025

Thanks @djarran

The code here is fine, but I'm a bit torn about the revert. It seems to be a balancing act of 4.5 being very broken vs older versions having slightly larger icons. This isn't very noticeable to non-admin users so I think it might be better to leave it as is and get a proper fix instead?

But in saying that I'm happy to merge if you feel strongly about this.

The idea behind the revert was that we would then create a new stable branch for Moodle 4.5 to apply these changes, as this causes a minor regression in sub-Moodle 4.5 versions.

Having said that, the proper fix seems to be to use pix_icon as opposed to html_writer::empty_tag. I'll verify that this solution works on all stable branches

@djarran
Copy link
Contributor Author

djarran commented Jan 30, 2025

Closing this PR in favour of #361

@djarran djarran closed this Jan 30, 2025
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.

2 participants