WordPress.org

Make WordPress Core


Ignore:
Timestamp:
04/05/2019 04:59:34 PM (3 years ago)
Author:
flixos90
Message:

Administration: Improve user experience and clarify when in recovery mode.

This changeset introduces several changes around usability when recovery mode is active:

  • Display a notice in the admin clarifying that the user is in recovery mode.
  • Use a highlight color for the admin bar link to exit recovery mode.
  • Exit recovery mode automatically when logging out.
  • Include a recovery mode indicator in the title tag.

Props aandrewdixon, azaozz, dhanukanuwan, flixos90, henrywright, karmatosed, mapk, melchoyce, spacedmonkey, TimothyBlynJacobs, tinkerbelly.
See #46608.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/css/colors/_admin.scss

    r43019 r45117  
    349349}
    350350
     351/* Admin Bar: recovery mode */
     352
     353#wpadminbar #wp-admin-bar-recovery-mode {
     354    color: $adminbar-recovery-exit-text;
     355    background-color: $adminbar-recovery-exit-background;
     356}
     357
     358#wpadminbar #wp-admin-bar-recovery-mode .ab-item,
     359#wpadminbar #wp-admin-bar-recovery-mode a.ab-item {
     360    color: $adminbar-recovery-exit-text;
     361}
     362
     363#wpadminbar .ab-top-menu > #wp-admin-bar-recovery-mode.hover >.ab-item,
     364#wpadminbar.nojq .quicklinks .ab-top-menu > #wp-admin-bar-recovery-mode > .ab-item:focus,
     365#wpadminbar:not(.mobile) .ab-top-menu > #wp-admin-bar-recovery-mode:hover > .ab-item,
     366#wpadminbar:not(.mobile) .ab-top-menu > #wp-admin-bar-recovery-mode > .ab-item:focus {
     367    color: $adminbar-recovery-exit-text;
     368    background-color: $adminbar-recovery-exit-background-alt;
     369}
     370
    351371/* Admin Bar: my account */
    352372
Note: See TracChangeset for help on using the changeset viewer.