Skip to content

Commit

Permalink
Merge branch 'main' into GAUD-7140/mixin-tab-barebones
Browse files Browse the repository at this point in the history
  • Loading branch information
KearseTrevor committed Dec 17, 2024
2 parents ff509ad + 663f6bb commit 2c3e3aa
Show file tree
Hide file tree
Showing 9 changed files with 233 additions and 176 deletions.
2 changes: 1 addition & 1 deletion .lmsrelease
Original file line number Diff line number Diff line change
@@ -1 +1 @@
20.25.1
20.25.2
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ describe('d2l-collapsible-panel', () => {
const elem = await fixture(html`
<d2l-collapsible-panel panel-title="Panel Title" skeleton>
<div slot="header">Header</div>
<d2l-button-icon slot="actions" icon="tier1:download"></d2l-button-icon>
<d2l-button-icon slot="actions" icon="tier1:download" text="Download"></d2l-button-icon>
Panel Content
</d2l-collapsible-panel>
`);
Expand Down
2 changes: 1 addition & 1 deletion components/dropdown/dropdown-content-mixin.js
Original file line number Diff line number Diff line change
Expand Up @@ -1134,7 +1134,7 @@ export const DropdownContentMixin = superclass => class extends LocalizeCoreElem
}
}
if (this.openedAbove) {
position.bottom = window.innerHeight - targetRect.top + 8;
position.bottom = window.innerHeight - targetRect.top + this._verticalOffset - 8;
} else {
position.top = targetRect.top + targetRect.height + this._verticalOffset - 7;
}
Expand Down
1 change: 1 addition & 0 deletions components/dropdown/test/dropdown-content.vdiff.js
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,7 @@ describe('dropdown-content', () => {
{ name: 'no-padding-no-pointer', content: html`<d2l-dropdown-content no-padding no-pointer opened>${basicText}</d2l-dropdown-content>` },
{ name: 'scroll-bottom-shadow', content: html`<d2l-dropdown-content opened>${scroll}</d2l-dropdown-content>` },
{ name: 'vertical-offset', dropdownStyles: { left: '50%' }, content: html`<d2l-dropdown-content vertical-offset="100" opened>${basicText}</d2l-dropdown-content>` },
{ name: 'vertical-offset-above', dropdownStyles: { bottom: '30px', left: '50%' }, content: html`<d2l-dropdown-content vertical-offset="100" opened>${basicText}</d2l-dropdown-content>` },
{ name: 'vertical-offset-edge', dropdownStyles: { left: '50%' }, content: html`<d2l-dropdown-content vertical-offset="100" opened>${longerText}</d2l-dropdown-content>` },
{ name: 'vertical-offset-negative', dropdownStyles: { left: '50%' }, content: html`<d2l-dropdown-content vertical-offset="-25" opened>${blockText}</d2l-dropdown-content>` },
{ name: 'boundary-left-below', dropdownStyles: { left: '50%', top: '50%' }, content: html`<d2l-dropdown-content boundary="{&quot;left&quot;:50, &quot;below&quot;:20}" opened>${longerText}</d2l-dropdown-content>` },
Expand Down
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion components/popover/popover-mixin.js
Original file line number Diff line number Diff line change
Expand Up @@ -469,7 +469,7 @@ export const PopoverMixin = superclass => class extends superclass {
}

if (this._location === 'block-start') {
position.bottom = window.innerHeight - openerRect.top + 8;
position.bottom = window.innerHeight - openerRect.top + this._offset - 8;
} else {
position.top = openerRect.top + openerRect.height + this._offset - 7;
}
Expand Down
2 changes: 1 addition & 1 deletion eslint.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { addExtensions, litConfig, nodeConfig, setDirectoryConfigs, testingConfi

export default [
{
ignores: ['.vdiff']
ignores: ['build']
},
...setDirectoryConfigs(
addExtensions(litConfig, ['.js', '.html']),
Expand Down
Loading

0 comments on commit 2c3e3aa

Please sign in to comment.