Skip to content

Components within a PermissionGate have their layout affected #3157

Closed

Description

@PhilBastian

Describe the bug

Description

This has been noticed with the Health Notifications switch, but likely affects other areas. The layout of the OnOffSwitch was previously flex, but by being surrounded by a PermissionGate it is now layout inline-flex, which has resulted in incorrect UI sizing and alignment.

Expected behavior

The PermissionGate should not affect the layout of components within it, or else the CSS of the components within need to be adjusted to work with the new layout

Image

Actual behavior

Image

Versions

Please list the version of the relevant packages or applications in which the bug exists.
2.9.0 introduced the PermissionGate component for handling of RBAC gated functionality

Steps to reproduce

  • Open ServicePulse
  • Navigate to Configuration -> Health Check Notifications

Relevant log output

Additional Information

Workarounds

Possible solutions

Additional information

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions