Add a Floating "Save Permissions" Button on the Permissions Page

Created on 28 February 2025, 9 days ago

Problem/Motivation

The Permissions page (/admin/people/permissions) in Drupal can be very long, requiring users to scroll extensively when assigning or updating permissions. Since the "Save permissions" button is only available at the bottom of the page, users often have to scroll up and down multiple times before they can save their changes.

A floating "Save permissions" button would significantly improve the user experience, allowing users to save their changes without excessive scrolling.

Current workaround
Something this contributed module Floating Action Button implements a global floating action button, but this request focuses on adding the functionality specifically to the Permissions page for better usability without affecting other admin pages.

Steps to reproduce

  1. Navigate to People > Permissions (/admin/people/permissions).
  2. Scroll down the page and modify multiple permissions.
  3. Notice that the "Save permissions" button is only at the bottom of the page.
  4. If adjustments are needed at the top or middle of the page, the user must scroll down again to save changes.

Proposed resolution

  1. Implement a floating "Save permissions" button on the Permissions page (/admin/people/permissions) only.
  2. Ensure that the button remains visible and accessible regardless of scroll position.
  3. Avoid impacting other admin pages unless explicitly enabled.

Remaining tasks

  • Define the best approach to introduce a floating action button on the Permissions page.
  • Implement a floating button that does not interfere with other UI elements.
  • Ensure mobile responsiveness and accessibility compliance.
  • Write tests to verify expected behavior.
  • Update documentation as needed.

User interface changes

  • A new floating "Save permissions" button will be added to the Permissions page (/admin/people/permissions).
  • The existing "Save permissions" button at the bottom will remain for redundancy.

Introduced terminology

API changes

Data model changes

Release notes snippet

Feature request
Status

Active

Version

11.1 🔥

Component

user.module

Created by

🇮🇳India prashant.c Dharamshala

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.71.5 2024