diff --git a/.changelog/11298.txt b/.changelog/11298.txt new file mode 100644 index 0000000000..a71a3d4d8d --- /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 cd607f1196..1054af5525 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 f095df9353..c8d79bf423 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'), + } ), }; };