Skip to content

Correct iconVariants and colorSchemes casing. Add NotificationOptions.iconVariants#885

Merged
xeenon merged 3 commits intow3c:mainfrom
carlosjeurissen:proposal/iconVariants/colorSchemes
Nov 26, 2025
Merged

Correct iconVariants and colorSchemes casing. Add NotificationOptions.iconVariants#885
xeenon merged 3 commits intow3c:mainfrom
carlosjeurissen:proposal/iconVariants/colorSchemes

Conversation

@carlosjeurissen
Copy link
Contributor

As discussed in:
#229 (comment)

To align with other extension APIs like scripting.registerContentScripts(), using camelCase when setting iconVariants instead of snake_case would align with existing patterns in webExtension API design.

This PR also adds a note on NotificationOptions.iconVariants as alternative for NotificationOptions.iconUrl.

@carlosjeurissen carlosjeurissen changed the title Correct iconVariants and colorSchemes casing. Add NotificationOptions.iconVariants Correct iconVariants and colorSchemes casing. Add NotificationOptions.iconVariants Oct 9, 2025
@carlosjeurissen carlosjeurissen changed the title Correct iconVariants and colorSchemes casing. Add NotificationOptions.iconVariants Correct iconVariants and colorSchemes casing. Add NotificationOptions.iconVariants Oct 9, 2025
carlosjeurissen and others added 2 commits October 9, 2025 23:39
Co-authored-by: Timothy Hatcher <timothy@hatcher.name>
Co-authored-by: Timothy Hatcher <timothy@hatcher.name>
@carlosjeurissen
Copy link
Contributor Author

@solomonkinard @oliverdunk considering the pending Chromium implementation, love to hear your thoughts.

@carlosjeurissen
Copy link
Contributor Author

carlosjeurissen commented Oct 10, 2025

@xeenon after checking your webkit PR on the setIcon null fix (https://github.com/WebKit/WebKit/pull/52135/files), seems you are also handling setIcon({variants: null}), we may want to add this to the proposal as well. (Or introduce a more semantic version, like restoreIcon() or resetIcon() as proposed in #876
@solomonkinard

@carlosjeurissen
Copy link
Contributor Author

carlosjeurissen commented Nov 20, 2025

@xeenon can we merge this considering the approval from @solomonkinard ?

@solomonkinard thanks for approving! Looking forward to the iconVariants support in Chrome! If there are any open questions on that, don't hesitate to reach out.

@xeenon xeenon merged commit f281132 into w3c:main Nov 26, 2025
4 checks passed
github-actions bot added a commit that referenced this pull request Nov 26, 2025
…lorSchemes

SHA: f281132
Reason: push, by xeenon

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
github-actions bot added a commit that referenced this pull request Nov 26, 2025
…lorSchemes

SHA: f281132
Reason: push, by xeenon

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
github-actions bot added a commit that referenced this pull request Nov 26, 2025
…lorSchemes

SHA: f281132
Reason: push, by xeenon

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
@carlosjeurissen carlosjeurissen deleted the proposal/iconVariants/colorSchemes branch November 26, 2025 12:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants