Uploaded image for project: 'Moodle'
  1. Moodle
  2. MDL-81825

Refactor "Screen reader" classes/functions renamed in Bootstrap 5

XMLWordPrintable

    • 3
    • HQ 2024 Sprint I4.1 Moppies

      In BS5 the"Screen reader" classes and functions have been renamed.

      Generate the needed SCSS code in bs5bridge.scss (so we can start using BS5 syntax) and refactor all the occurrences in the codebase.

      https://getbootstrap.com/docs/5.2/migration/:

      "Screen reader" classes are now "visually hidden" classes.

      • Changed the Sass file from scss/helpers/_screenreaders.scss to scss/helpers/_visually-hidden.scss
      • Renamed .sr-only and .sr-only-focusable to .visually-hidden and .visually-hidden-focusable
      • Renamed sr-only() and sr-only-focusable() mixins to visually-hidden() and visually-hidden-focusable().

      This issue should also be included in the BS4 compatibility layer in MDL-80519

        1. (1) 4 Passed -- (Main)MDL-81825.png
          (1) 4 Passed -- (Main)MDL-81825.png
          97 kB
        2. (1) 6 Passed -- (Main)MDL-81825.png
          (1) 6 Passed -- (Main)MDL-81825.png
          76 kB
        3. (1) 9 Passed -- (Main)MDL-81825.png
          (1) 9 Passed -- (Main)MDL-81825.png
          153 kB
        4. screenshot-1.png
          screenshot-1.png
          37 kB
        5. screenshot-2.png
          screenshot-2.png
          41 kB
        6. screenshot-3.png
          screenshot-3.png
          256 kB

            mikelmartíncorrales Mikel Martín Corrales
            mikelmartíncorrales Mikel Martín Corrales
            Laurent David Laurent David
            Ferran Recio Ferran Recio
            Kim Jared Lucas Kim Jared Lucas
            Votes:
            0 Vote for this issue
            Watchers:
            8 Start watching this issue

              Created:
              Updated:
              Resolved:

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - 0 minutes
                0m
                Logged:
                Time Spent - 1 hour, 5 minutes
                1h 5m

                  Error rendering 'clockify-timesheets-time-tracking-reports:timer-sidebar'. Please contact your Jira administrators.