mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-11-09 16:16:41 +08:00
feat(backdrop): ionic theme styles (#29873)
Issue number: internal --------- <!-- Please do not submit updates to dependencies unless it fixes an issue. --> <!-- Please try to limit your pull request to one type (bugfix, feature, etc). Submit multiple pull requests if needed. --> ## What is the current behavior? <!-- Please describe the current behavior that you are modifying. --> No Ionic theme styles for the `ion-backdrop` element ## What is the new behavior? <!-- Please describe the behavior or changes that are being added by this PR. --> Adds Ionic theme styles for `ion-backdrop` and updates snapshots. ## Does this introduce a breaking change? - [ ] Yes - [x] No <!-- If this introduces a breaking change: 1. Describe the impact and migration path for existing applications below. 2. Update the BREAKING.md file with the breaking change. 3. Add "BREAKING CHANGE: [...]" to the commit description when merging. See https://github.com/ionic-team/ionic-framework/blob/main/docs/CONTRIBUTING.md#footer for more information. --> ## Other information <!-- Any other information that is important to this PR such as screenshots of how the component looks before and after the change. --> The backdrop changes were only applied to `ion-modal` for now as all other components where `ion-backdrop` is used do not yet have dedicated Ionic theme styles. This is relevant as those components will need to set `--backdrop-opacity: <value>` for their own implementations.
This commit is contained in:
7
core/src/components/backdrop/backdrop.ionic.scss
Normal file
7
core/src/components/backdrop/backdrop.ionic.scss
Normal file
@ -0,0 +1,7 @@
|
||||
@use "../../themes/ionic/ionic.globals.scss" as globals;
|
||||
@import "./backdrop";
|
||||
|
||||
:host {
|
||||
background-color: rgba(globals.$ionic-color-base-black-rgb, 0.7);
|
||||
backdrop-filter: blur(2px);
|
||||
}
|
||||
Reference in New Issue
Block a user