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

Issue #358: Use pix_icon to render icons #361

Merged
merged 1 commit into from
Jan 30, 2025

Conversation

djarran
Copy link
Contributor

@djarran djarran commented Jan 30, 2025

Description: This resolves Issue #358 (and fixes subsequent regressions, see #360) by using pix_icon instead of html_writer::empty_tag. This simplifies the code by using the core methods of rendering icons.

This fixes the original issue in MWP 4.5 and causes no regressions when used in older versions (tested Moodle 3.9, Moodle 4.1, Moodle 4.5, MWP 4.5 and Totara 13)

@djarran
Copy link
Contributor Author

djarran commented Jan 30, 2025

MWP 4.5

Before fix

image

With initial fix

image

With latest fix

image

Totara 13

Before regression

image

After regression

image

With latest fix

image

Moodle 3.9

Before regression

image

After regression

image

With latest fix

image

@golenkovm
Copy link
Contributor

Thanks @djarran Looks good to me.

PS: Thanks heaps for providing the detailed screenshots and testing this in various environments.

Cheers,
Misha

@golenkovm golenkovm merged commit 11fbe64 into MOODLE_39_STABLE Jan 30, 2025
60 checks passed
@golenkovm golenkovm deleted the 359-MOODLE_39_STABLE-fix branch January 30, 2025 02:32
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