From e9d54e01a9119faaa68c7512c56d3ec076d4d46a Mon Sep 17 00:00:00 2001 From: kennylam Date: Tue, 17 Jan 2023 18:40:08 -0500 Subject: [PATCH] fix(masthead): update logo url protocol (#9914) ### Related Ticket(s) #9567 ### Description This updates the React masthead logo URL to use `https`. ### Changelog **Changed** - React masthead logo URL changed to use `https` --- .../src/components/dropdown/dropdown.ts | 32 ++++++++----------- .../src/components/tile/selectable-tile.ts | 3 +- .../src/components/tooltip/tooltip.ts | 10 +++--- 3 files changed, 20 insertions(+), 25 deletions(-) diff --git a/carbon-web-components/packages/carbon-web-components/src/components/dropdown/dropdown.ts b/carbon-web-components/packages/carbon-web-components/src/components/dropdown/dropdown.ts index c4ba0bffe33..9b075c1252b 100644 --- a/carbon-web-components/packages/carbon-web-components/src/components/dropdown/dropdown.ts +++ b/carbon-web-components/packages/carbon-web-components/src/components/dropdown/dropdown.ts @@ -122,7 +122,7 @@ class BXDropdown extends ValidityMixin( this.querySelectorAll( (this.constructor as typeof BXDropdown).selectorItemSelected ), - item => { + (item) => { (item as BXDropdownItem).selected = false; } ); @@ -312,7 +312,7 @@ class BXDropdown extends ValidityMixin( this.querySelectorAll( (this.constructor as typeof BXDropdown).selectorItemHighlighted ), - item => { + (item) => { (item as BXDropdownItem).highlighted = false; } ); @@ -331,7 +331,7 @@ class BXDropdown extends ValidityMixin( this.querySelectorAll( (this.constructor as typeof BXDropdown).selectorItem ), - item => { + (item) => { (item as BXDropdownItem).highlighted = false; } ); @@ -537,20 +537,20 @@ class BXDropdown extends ValidityMixin( shouldUpdate(changedProperties) { const { selectorItem } = this.constructor as typeof BXDropdown; if (changedProperties.has('size')) { - forEach(this.querySelectorAll(selectorItem), elem => { + forEach(this.querySelectorAll(selectorItem), (elem) => { (elem as BXDropdownItem).size = this.size; }); } if (changedProperties.has('value')) { // `` updates selection beforehand // because our rendering logic for `` looks for selected items via `qSA()` - forEach(this.querySelectorAll(selectorItem), elem => { + forEach(this.querySelectorAll(selectorItem), (elem) => { (elem as BXDropdownItem).selected = (elem as BXDropdownItem).value === this.value; }); const item = find( this.querySelectorAll(selectorItem), - elem => (elem as BXDropdownItem).value === this.value + (elem) => (elem as BXDropdownItem).value === this.value ); if (item) { const range = this.ownerDocument!.createRange(); @@ -570,7 +570,7 @@ class BXDropdown extends ValidityMixin( if (changedProperties.has('disabled')) { const { disabled } = this; // Propagate `disabled` attribute to descendants until `:host-context()` gets supported in all major browsers - forEach(this.querySelectorAll(selectorItem), elem => { + forEach(this.querySelectorAll(selectorItem), (elem) => { (elem as BXDropdownItem).disabled = disabled; }); } @@ -651,8 +651,7 @@ class BXDropdown extends ValidityMixin(
+ ?hidden="${inline || !hasHelperText}"> ${helperText} @@ -677,8 +676,7 @@ class BXDropdown extends ValidityMixin( part="menu-body" class="${prefix}--list-box__menu" role="listbox" - tabindex="-1" - > + tabindex="-1">
`; @@ -686,8 +684,7 @@ class BXDropdown extends ValidityMixin(