Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 16 additions & 0 deletions core/src/components/tab-bar/tab-bar.ionic.scss
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
@use "../../themes/ionic/ionic.globals.scss" as globals;
@use "./tab-bar.ionic.vars" as vars;
@use "./tab-bar.common";

:host {
Expand Down Expand Up @@ -85,6 +86,21 @@
bottom: calc(globals.$ion-space-400 + var(--ion-safe-area-bottom, 0));
}

// Tab Bar Translucent
// --------------------------------------------------

@supports (backdrop-filter: blur(0)) {
:host(.tab-bar-translucent) {
--background: #{vars.$tab-bar-ionic-translucent-background-color};

backdrop-filter: var(--backdrop-filter, #{vars.$tab-bar-ionic-translucent-filter});
}

:host(.tab-bar-translucent) ::slotted(ion-tab-button.ion-focused) {
--background: transparent;
}
}

// Tab Bar Shapes
// --------------------------------------------------

Expand Down
13 changes: 13 additions & 0 deletions core/src/components/tab-bar/tab-bar.ionic.vars.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
// Tab Bar Ionic
// --------------------------------------------------
/// @prop - Alpha of translucent tab bar background color
$tab-bar-ionic-translucent-background-color-alpha: 0.6;

/// @prop - Translucent tab bar background color
$tab-bar-ionic-translucent-background-color: var(
--translucent-background,
rgba(255, 255, 255, $tab-bar-ionic-translucent-background-color-alpha)
);

/// @prop - Filter of the translucent tab bar background color
$tab-bar-ionic-translucent-filter: blur(12px);
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading