Skip to content
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

chore(macros): add "except shared" condition to AvailableinWorkers #11888

Merged
merged 1 commit into from
Oct 1, 2024

Conversation

chrisdavidmills
Copy link
Contributor

… except for shared

Summary

I am adding MDN content that shows a feature is now supported in dedicated and service workers. See mdn/content#36060

Problem

The AvaiIableInWorkers macro does not support the combination of supported in workers except for shared workers.

Solution

I have added an argument option, "window_and_worker_except_shared", which displays text supporting this case.


Screenshots

With the macro call looking like this — {{AvailableInWorkers("window_and_worker_except_shared")}} — the generated banner now looks like this:

Screenshot 2024-10-01 at 11 26 36


How did you test this change?

I included the macro call with my new argument in a test page on mdn/content#36060, set the content repo directory as the source of the content to display in my yari repo env file, and then ran it locally to verify it was working properly.

@chrisdavidmills chrisdavidmills requested a review from a team as a code owner October 1, 2024 10:29
@github-actions github-actions bot added the macros tracking issues related to kumascript macros label Oct 1, 2024
@LeoMcA LeoMcA changed the title Update AvailableInWorkers macro to include case of support in workers… chore(macros): add "except shared" condition to AvailableinWorkers Oct 1, 2024
Copy link
Member

@LeoMcA LeoMcA left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

@LeoMcA LeoMcA merged commit 41ad479 into mdn:main Oct 1, 2024
11 of 12 checks passed
@chrisdavidmills chrisdavidmills deleted the update-availableinworkers branch October 1, 2024 11:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
macros tracking issues related to kumascript macros
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants