Skip to content

Commit 15c3a32

Browse files
mihar-22claude
andcommitted
docs(site): add data-disabled styling examples to pip and fullscreen button docs
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent 30c4dd0 commit 15c3a32

2 files changed

Lines changed: 24 additions & 0 deletions

File tree

site/src/content/docs/reference/fullscreen-button.mdx

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,12 @@ You can style the button based on fullscreen state:
4949
media-fullscreen-button[data-fullscreen] {
5050
background: red;
5151
}
52+
53+
/* Disabled (prop or feature unavailable) */
54+
media-fullscreen-button[data-disabled] {
55+
opacity: 0.5;
56+
cursor: not-allowed;
57+
}
5258
```
5359
</FrameworkCase>
5460

@@ -60,6 +66,12 @@ React renders a `<button>` element. Add a `className` to style it:
6066
.fullscreen-button[data-fullscreen] {
6167
background: red;
6268
}
69+
70+
/* Disabled (prop or feature unavailable) */
71+
.fullscreen-button[data-disabled] {
72+
opacity: 0.5;
73+
cursor: not-allowed;
74+
}
6375
```
6476
</FrameworkCase>
6577

site/src/content/docs/reference/pip-button.mdx

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,12 @@ You can style the button based on PiP state:
4949
media-pip-button[data-pip] {
5050
background: red;
5151
}
52+
53+
/* Disabled (prop or feature unavailable) */
54+
media-pip-button[data-disabled] {
55+
opacity: 0.5;
56+
cursor: not-allowed;
57+
}
5258
```
5359
</FrameworkCase>
5460

@@ -60,6 +66,12 @@ React renders a `<button>` element. Add a `className` to style it:
6066
.pip-button[data-pip] {
6167
background: red;
6268
}
69+
70+
/* Disabled (prop or feature unavailable) */
71+
.pip-button[data-disabled] {
72+
opacity: 0.5;
73+
cursor: not-allowed;
74+
}
6375
```
6476
</FrameworkCase>
6577

0 commit comments

Comments
 (0)