Skip to content

Conversation

brandyscarney
Copy link
Member

@brandyscarney brandyscarney commented Oct 2, 2019

Pull request checklist

Please check if your PR fulfills the following requirements:

  • Tests for the changes have been added (for bug fixes / features)
  • Docs have been reviewed and added / updated if needed (for bug fixes / features)
  • Build (npm run build) was run locally and any changes were pushed
  • Lint (npm run lint) has passed locally and any fixes were made for failures

Pull request type

Please check the type of change your PR introduces:

  • Bugfix
  • Feature
  • Code style update (formatting, renaming)
  • Refactoring (no functional changes, no api changes)
  • Build related changes
  • Documentation content changes
  • Other (please describe):

What is the current behavior?

Issue Number: fixes #16446

What is the new behavior?

  • Adds --backdrop-opacity as a component level variable to all overlays
  • Adds --ion-backdrop-opacity to change the overlays backdrop opacity globally
  • This removes the need to customize the entire animation

Does this introduce a breaking change?

  • Yes
  • No

Other information

liamdebeasi and others added 13 commits September 27, 2019 15:51
* Remove close button

* update tests

* update tests

* add build
BREAKING CHANGES

Removes ion-nav-pop, ion-nav-push and ion-nav-set-root in favor of using ion-nav-link with router-direction
BREAKING CHANGES

Removes `scss` files from the distributed files. Please use CSS variables for theming instead.
BREAKING CHANGES

The Ionic default colors have been updated to the following:

primary:         #3880ff
secondary:       #3dc2ff
tertiary:        #5260ff
success:         #2dd36f
warning:         #ffc409
danger:          #eb445a
light:           #f4f5f8
medium:          #92949c
dark:            #222428

`primary`, `light` and `dark` have not changed. The contrast color for `warning` has been updated to `#000`.
BREAKING CHANGES

Removes all CSS utility attributes. Please use CSS classes instead. See the documentation for the correct class names: https://ionicframework.com/docs/layout/css-utilities
BREAKING CHANGES

Skeleton text's `width` property has been removed. Please use CSS instead to set the width.
BREAKING CHANGES

The deprecated `ion-anchor` component has been removed in favor using `ion-router-link`. It should still only be used with vanilla and Stencil JavaScript projects. For Angular projects, use an `<a>` and `routerLink` with the Angular router.
)

BREAKING CHANGES

The `show-cancel-button` property of the searchbar no longer accepts boolean values. Accepted values are strings: `"focus"`, `"always"`, `"never"`. The following should change:

```
<ion-searchbar show-cancel-button>
<ion-searchbar show-cancel-button="true">
<ion-searchbar show-cancel-button="false">
```

becomes

```
<ion-searchbar show-cancel-button="focus">
<ion-searchbar show-cancel-button="focus">
<ion-searchbar show-cancel-button="never">
```
)

* remove no border ref

* change to dispaly

* update usage
@ionitron-bot ionitron-bot bot added package: angular @ionic/angular package package: core @ionic/core package labels Oct 2, 2019
@brandyscarney brandyscarney requested review from liamdebeasi and manucorporat and removed request for manucorporat October 2, 2019 17:05
@brandyscarney brandyscarney changed the base branch from master to next October 2, 2019 17:05
@brandyscarney brandyscarney merged commit 60e1c4d into next Oct 8, 2019
@brandyscarney brandyscarney deleted the feat-backdrop-opacity branch October 8, 2019 20:42
brandyscarney added a commit that referenced this pull request Oct 8, 2019
…19533)

adds `--backdrop-opacity` to all overlays and `--ion-backdrop-opacity` for global control

closes #16446
brandyscarney added a commit that referenced this pull request Oct 9, 2019
…19533)

adds `--backdrop-opacity` to all overlays and `--ion-backdrop-opacity` for global control

closes #16446
brandyscarney added a commit that referenced this pull request Oct 10, 2019
…19533)

adds `--backdrop-opacity` to all overlays and `--ion-backdrop-opacity` for global control

closes #16446
elylucas pushed a commit that referenced this pull request Oct 30, 2019
…19533)

adds `--backdrop-opacity` to all overlays and `--ion-backdrop-opacity` for global control

closes #16446
@ShaggyDude
Copy link

Does this work now? I'm in the latest ionic 5 and it doesn't appear to work there?

@lincolnthree
Copy link

lincolnthree commented Aug 4, 2020

Works here.
In your root stylesheet:

:root {
  --ion-backdrop-opacity: 1;
}

@lincolnthree
Copy link

What doesn't work, however, is backdrop opacity on the ion-menu component. It does not seem to be integrated there.

@ShaggyDude
Copy link

lincolnthree is correct. Is there a way to make it work in ion-menu?

@alexandre-khoury
Copy link

same question here

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

package: angular @ionic/angular package package: core @ionic/core package

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants