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

[4.1-dev] Fixing SCSS issues with division deprecation and math.div() #35645

Closed
wants to merge 25 commits into from
Closed

[4.1-dev] Fixing SCSS issues with division deprecation and math.div() #35645

wants to merge 25 commits into from

Conversation

thednp
Copy link
Contributor

@thednp thednp commented Sep 22, 2021

Pull Request for PR #35639 .

Important

This PR should be merged into [4.0-dev] as well asap.

Summary of Changes

  • The fontawesome icon library haven't marked their $fa-fw-width variable with !default, see #17482 which uses (20em / 16) expression which is deprecated in dart-sass 2.0 and also largely reported in the fontawesome issues.

  • Other changes in this PR also address other dart-sass issues, but we don't replace for instance 24 / 16 with math.div(24, 16) as recommended by the compiler, but with 24 * 0.0625 (which is the result of 1/16) and the reason for that is the libsass compiler still largely used and this approach is also widely adopted. I suspect scssPhp also might not have math implemented.

  • See this PR in fontawesome
    for more info.

Testing Instructions

Just build and check SASS compiler output.

Actual result BEFORE applying this Pull Request

The compiler just won't do division via the / (forward slash) operator
https://ci.joomla.org/joomla/joomla-cms/47599

Expected result AFTER applying this Pull Request

All scss files compiled successful.

Documentation Changes Required

No.

brianteeman and others added 10 commits September 18, 2021 20:42
This updates the skipto js to the newly released 4.1.2

### Version 4.1.2
Added aria-busy="true" attribute to menu element when SkipTo is initialized and being updated with new menu items to support validators looking for required menu items for the menu role.
Added the optional aria-controls attribute to button element to reference the id of the menu element as defined in the W3C ARIA Authoring practices for menu button pattern.

### Version 4.1.1
Removed aria-describedby from button, since screen readers read the accesskey information.
Fixes bug #35454 (Debug plugin: Debug bar doesn't display logs and deprecated tabs by default, while setting's default is ON)
If you do not have the track session metadata option enabled in global configuration then the admin module for Logged Users displays an appropriate message.

This PR simply styles the module output correctly to be consistent
* [J4] Adds support for custom class on subforms via xml

* [J4] Adds support for custom class on subforms via xml
See https://www.tiny.cloud/docs/changelog/ for details

This includes 5.9.0, 5.9.1 and 5.9.2
…ig.xml of the respective component. (#35479)

Co-authored-by: Thomas Hunziker <werbemails@bakual.ch>
* Update main.php

* Update Bootstrap.php
@joomla-cms-bot joomla-cms-bot added NPM Resource Changed This Pull Request can't be tested by Patchtester PR-4.1-dev labels Sep 22, 2021
@thednp thednp changed the title [4.1-dev] Fixing SCSS issues with math.div() [4.1-dev] Fixing SCSS issues with division deprecation and math.div() Sep 22, 2021
@thednp
Copy link
Contributor Author

thednp commented Sep 22, 2021

@dgrammatiko and any other please test and push this.

@brianteeman
Copy link
Contributor

If you want it to be merged into 4.0 then you should do the pr on that branch and not 4.1

From your description it implies that its just for fontawesome but I see in the files that it applies elsewhere. Please confirm and update your initial post and test instructions

@thednp
Copy link
Contributor Author

thednp commented Sep 22, 2021

I need this in 4.1 for #35639.

It is for fontawesome mainly, but also some other minor changes to pass the compiler. As you can see for yourself. So close commit and re-commit to 4.0? and then someone else will merge the change to 4.1?

4.1 branch is important to get that PR solved.

@dgrammatiko
Copy link
Contributor

So close commit and re-commit to 4.0?

You don't have to close and reopen you can rebase it to 4.0-dev, eg click on the edit next to the PR's title and then select the branch
Screenshot 2021-09-22 at 19 38 01

@thednp
Copy link
Contributor Author

thednp commented Sep 22, 2021

I can't do that right now, I'm still working with GH app on the color-picker branch.

wilsonge and others added 12 commits September 22, 2021 21:07
Co-authored-by: Tobias Zulauf <zero-24@users.noreply.github.com>
* Add a new Icon for com_tags to the quicicon module

* Update administrator/language/en-GB/com_tags.ini

Co-authored-by: Brian Teeman <brian@teeman.net>

Co-authored-by: Brian Teeman <brian@teeman.net>
…1675)

* Actionlogs: Added parameter to disable relative timestamps.

* Update administrator/components/com_actionlogs/config.xml

Co-authored-by: Quy <quy@fluxbb.org>

* Apply suggestions from code review

Co-authored-by: Quy <quy@fluxbb.org>

Co-authored-by: Quy <quy@fluxbb.org>
* log:logDeprecated

* use new log method

* new log method, improve callStack lookup

* phpcs

* phpcs

* Check deprecation logging on boot

* trigger_error everywhere

* use namespaced classes
* add Joomla! Accessibility Team to the code owners

* add cassiopeia

* add everything in the templates
@joomla-cms-bot joomla-cms-bot added Unit/System Tests and removed NPM Resource Changed This Pull Request can't be tested by Patchtester labels Sep 22, 2021
@thednp thednp closed this Sep 22, 2021
@thednp thednp deleted the 4.1-dev-scss-fixes branch September 23, 2021 08:09
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.