-
Notifications
You must be signed in to change notification settings - Fork 100
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
Fix maskable icon setting behaviour based on site icon #770
Conversation
* Hide the maskable icon setting if site icon is not set
* Set maskable icon value to false if site icon is not set.
Codecov Report
@@ Coverage Diff @@
## develop #770 +/- ##
=============================================
+ Coverage 18.96% 19.01% +0.05%
Complexity 346 346
=============================================
Files 57 57
Lines 2320 2324 +4
=============================================
+ Hits 440 442 +2
- Misses 1880 1882 +2
Flags with carried forward coverage won't be shown. Click here to find out more.
Continue to review full report at Codecov.
|
// Change the site_icon_maskable if site_icon is not set. | ||
siteIconSetting.bind((newSiteIconValue) => { | ||
if (!newSiteIconValue) { | ||
siteIconMaskableSetting(false); | ||
} | ||
}); | ||
|
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.
This does capture @pooja-muchandikar's comment in #304 (comment):
If Site icon was set and set as maskable and then removed the site icon, Maskable Icon setting remains checked.
However, I didn't think this was necessarily a bug. It's just whether one thinks of the maskable property being linked to the icon, or if maskable is something that you would persist across icon changes.
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.
However, I didn't think this was necessarily a bug.
Agreed, rather it is just a check to ensure that by default we are assuming that an icon is maskable.
If we had to save maskable property in an icon meta then we will be able to guess it correctly, for an icon maskable property should be true or not, but saving maskable property in meta could be overkill IMO.
In d19d86e I've addressed @pooja-muchandikar's point in #304 (comment): Now when I set the DevTools seems to group the icons with duplicate dimensions horizontally (although it strangely doesn't automatically apply the mask to them). |
This is a follow-up to #304 and was originally discussed in #304 (comment).
This PR aims to:
Maskable Icon
checkbox if site icon is not set.checked
fromMaskable Icon
checkbox if the user has removed the site icon.