How to use the @material/drawer.util.supportsCssCustomProperties function in @material/drawer

To help you get started, we’ve selected a few @material/drawer examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github src-zone / material / bundle / src / components / drawer / mdc.drawer.directive.ts View on Github external
updateCssVariable: (value: string) => {
                if (util.supportsCssCustomProperties())
                    this._elm.nativeElement.style.setProperty(MDCTemporaryDrawerFoundation.strings.OPACITY_VAR_NAME, value);
            },
            eventTargetHasClass: (target: HTMLElement, className: string) => {
github trimox / angular-mdc-web / src / lib / drawer / temporary / drawer-temporary.ts View on Github external
updateCssVariable: (value: string) => {
      if (util.supportsCssCustomProperties()) {
        this.renderer.setStyle(this.elementRef.nativeElement, '--mdc-temporary-drawer-opacity', value);
      }
    },
    getFocusableElements: () => {