diff --git a/.changelog/11298.txt b/.changelog/11298.txt new file mode 100644 index 000000000..a71a3d4d8 --- /dev/null +++ b/.changelog/11298.txt @@ -0,0 +1,3 @@ +```release-note:bug +ui: Fixed styling of Role remove dialog on the Token edit page +``` diff --git a/ui/packages/consul-ui/app/components/role-selector/index.hbs b/ui/packages/consul-ui/app/components/role-selector/index.hbs index cd607f119..1054af552 100644 --- a/ui/packages/consul-ui/app/components/role-selector/index.hbs +++ b/ui/packages/consul-ui/app/components/role-selector/index.hbs @@ -141,24 +141,35 @@ as |modal|>
  • -
    -
    -
    - Confirm Remove -
    + + <:header> + Confirm Remove + + <:body>

    Are you sure you want to remove this role?

    -
    -
      -
    • - -
    • -
    • - -
    • -
    -
    + + <:actions as |Actions|> + + + Remove + + + + + Cancel + + + +
  • {{/if}} diff --git a/ui/packages/consul-ui/app/components/role-selector/pageobject.js b/ui/packages/consul-ui/app/components/role-selector/pageobject.js index f095df935..c8d79bf42 100644 --- a/ui/packages/consul-ui/app/components/role-selector/pageobject.js +++ b/ui/packages/consul-ui/app/components/role-selector/pageobject.js @@ -6,9 +6,11 @@ export default (clickable, deletable, collection, alias, roleForm) => (scope = ' roles: alias('selectedOptions'), selectedOptions: collection( '[data-test-roles] [data-test-tabular-row]', - deletable({ - actions: clickable('label'), - }) + { + actions: clickable('label > button'), + delete: clickable('[data-test-delete]'), + confirmDelete: clickable('.informed-action button'), + } ), }; };