Closed ameshkov closed 6 years ago
- Prevent actual selecting of an option: https://uploads.adguard.com/up04_9s1sd_testcases.adguard.comPopupBlockertest-popup-blocker.html.png
- Selecting an option should work as if it is a button click.
It is a unusual request, and I don't think it is possible with native HTML <select>
tag. We will need to emulate a behavior of <select>
element with JS and I need a new markup for this.
@seanl-adg what I mean is that you need to catch the select
change and react immediately:
select
back to the default state ("Options")Is that possible? What needs to be changed in the markup?
- "Allow" and "Don't show" options should lead to a page reload
I'm concerned about this.
Good point. Instead of reloading the page we need to hide the alert dialog when either "Allow" or "Don't show" is clicked.
IMO we can also provide some tooltips saying smth like "settings saved!" instead of closing the alert.
If you changed your mind please update the original issue :)
@seanl-adg oh I didn't change, these are two separate things (adding toast notifications and this one).
I mean we can live without toast notifications in the very first release, but we will add them later (or maybe sooner, depends on you:))
Oh don't get me wrong, check the original issue again. I just to want to tidy up the issue threads :) So do you still think that "Allow" and "Don't show" options should lead to a page reload? :)
Nope, just hide the alert dialog (eventually, once toast lib is ready, accompany with a toast notification)
Updated the issue text.
The top-right corner of a web page (https://uploads.adguard.com/up04_p20fx_testcases.adguard.comPopupBlockertest-popup-blocker.html.png)
The position of the pin and the alert need to be adjusted, I need a new CSS for this.
@kaprielov assist with https://github.com/AdguardTeam/PopupBlocker/issues/95#issuecomment-377618991 please
One more thing should be added:
Then it is collapsed to a pin button.
The time-to-live in the collapsed state must be 10 seconds. After that, the pin button gets hidden as well.
Also, I suggest collapsing the alert window automatically after choosing any option:
How to test:
When there is no user interaction:
When user hovers mouse cursor over the dialog
When user clicks on the dialog
Checked, all of those scenarios workes as expected.
Location
The top-right corner of a web page (https://uploads.adguard.com/up04_p20fx_testcases.adguard.comPopupBlockertest-popup-blocker.html.png)
Alert Lifetime
Expanded state time is 10 seconds.
Alert Dialog Options [Edited by @seanl-adg]