Skip to content

Commit c1a9467

Browse files
Merge pull request #6591 from MicrosoftDocs/jken/fix-store-badge-css-styling
Add ms-store-badge web component CSS styling docs
2 parents 4b08a71 + 89ad2cb commit c1a9467

1 file changed

Lines changed: 10 additions & 1 deletion

File tree

hub/apps/publish/faq/leverage-developer-tools.md

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -211,9 +211,18 @@ Customers clicking this link are taken to the web-based Store listing, where the
211211

212212
- **Using the Microsoft Store badge:**
213213
You can create a branded Microsoft Store badge that links directly to your app. To generate your custom badge:
214-
1. Go to the [Microsoft Store badges](https://developer.microsoft.com/store/badges) page.
214+
1. Go to the [Microsoft Store badge creator](https://apps.microsoft.com/badge) page.
215215
2. Provide your app’s 12-character Store ID (found in your Partner Center under the Product Identity section).
216216

217+
The badge is a [web component](https://developer.mozilla.org/en-US/docs/Web/API/Web_components) that automatically detects the user’s language and theme. It won’t inherit CSS styles from your page, but you can customize its size using a [CSS part selector](https://developer.mozilla.org/en-US/docs/Web/CSS/::part):
218+
219+
```css
220+
/* Adjust the badge size to match other buttons on your page. */
221+
ms-store-badge::part(img) {
222+
max-width: 200px;
223+
}
224+
```
225+
217226
This badge clearly indicates your app is available on the Microsoft Store and can help increase customer trust and downloads.
218227

219228
- **Direct Store App link using URI scheme:**

0 commit comments

Comments
 (0)