diff --git a/docs/api/backdrop.md b/docs/api/backdrop.md index 4684f53e6e3..c553e21a6ad 100644 --- a/docs/api/backdrop.md +++ b/docs/api/backdrop.md @@ -16,7 +16,7 @@ Backdrops are full screen components that overlay other components. They are use ## Basic Usage -The backdrop is transparent by default. The backdrop will prevent clicking or tapping on the content behind it. +The backdrop prevents clicking or tapping on the content behind it. It is transparent by default, so the below demo includes CSS to make it visible. import Basic from '@site/static/usage/v7/backdrop/basic/index.md'; diff --git a/static/usage/v7/backdrop/basic/angular/example_component_css.md b/static/usage/v7/backdrop/basic/angular/example_component_css.md new file mode 100644 index 00000000000..5889f31812d --- /dev/null +++ b/static/usage/v7/backdrop/basic/angular/example_component_css.md @@ -0,0 +1,6 @@ +```css +ion-backdrop { + background: var(--ion-color-dark); + opacity: 0.3; +} +``` diff --git a/static/usage/v7/backdrop/basic/angular.md b/static/usage/v7/backdrop/basic/angular/example_component_html.md similarity index 100% rename from static/usage/v7/backdrop/basic/angular.md rename to static/usage/v7/backdrop/basic/angular/example_component_html.md diff --git a/static/usage/v7/backdrop/basic/demo.html b/static/usage/v7/backdrop/basic/demo.html index 355a8bb220a..7c2e9534d41 100644 --- a/static/usage/v7/backdrop/basic/demo.html +++ b/static/usage/v7/backdrop/basic/demo.html @@ -8,6 +8,13 @@ + +
diff --git a/static/usage/v7/backdrop/basic/index.md b/static/usage/v7/backdrop/basic/index.md index adf0b9d8d5e..491b5eec6e1 100644 --- a/static/usage/v7/backdrop/basic/index.md +++ b/static/usage/v7/backdrop/basic/index.md @@ -1,13 +1,33 @@ import Playground from '@site/src/components/global/Playground'; import javascript from './javascript.md'; -import react from './react.md'; + +import react_main_tsx from './react/main_tsx.md'; +import react_main_css from './react/main_css.md'; + import vue from './vue.md'; -import angular from './angular.md'; + +import angular_example_component_css from './angular/example_component_css.md'; +import angular_example_component_html from './angular/example_component_html.md';