-
Notifications
You must be signed in to change notification settings - Fork 5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Convert Connected Sites page to modal #8254
Conversation
This commit updates the existing _Connected Sites_ section to a modal using the `Popover` component. This will serve as a base for the new modal design.
2f775af
to
61d0127
Compare
test/e2e/permissions.spec.js
Outdated
@@ -163,6 +163,7 @@ describe('MetaMask', function () { | |||
await driver.switchToWindow(extension) | |||
|
|||
await driver.clickElement(By.xpath(`//button[contains(text(), 'Disconnect All')]`)) | |||
await driver.clickElement(By.css('.popover-bg')) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The confirmation modal is the old-style modal and is thus behind the popover. This is a workaround pending the forthcoming redesign.
61d0127
to
256ad92
Compare
@@ -163,6 +163,7 @@ describe('MetaMask', function () { | |||
await driver.switchToWindow(extension) | |||
|
|||
await driver.clickElement(By.xpath(`//button[contains(text(), 'Disconnect All')]`)) | |||
await driver.clickElement(By.css('.popover-header__close')) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The confirmation modal is the old-style modal and is thus behind the popover. This is a workaround pending the forthcoming redesign.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM!
#8242 and #8253 was the preparation work.
This PR migrates the existing Connected Sites page to a modal, serving as the base for the new modal designs (in a forthcoming PR). This leaves the routing intact, i.e. the
#connected-sites
route still exists & works, but moves the route into theHome
component so that the home screen is the backdrop.Screenshots: