Skip to content

Commit

Permalink
fix: revert setting align-self to stretch (#3534)
Browse files Browse the repository at this point in the history
  • Loading branch information
web-padawan committed Mar 10, 2022
1 parent 3a73ac1 commit 189177b
Show file tree
Hide file tree
Showing 7 changed files with 0 additions and 53 deletions.
1 change: 0 additions & 1 deletion packages/menu-bar/src/vaadin-menu-bar.js
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,6 @@ class MenuBar extends ButtonsMixin(DisabledMixin(InteractionsMixin(ElementMixin(
<style>
:host {
display: block;
align-self: stretch; /* make overflow work in flex */
}
:host([hidden]) {
Expand Down
26 changes: 0 additions & 26 deletions packages/menu-bar/test/visual/lumo/menu-bar.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -46,32 +46,6 @@ describe('menu-bar', () => {
});
});

describe('column flex', () => {
beforeEach(() => {
div = document.createElement('div');
div.style.display = 'flex';
div.style.padding = '10px';
div.style.maxWidth = '400px';
div.style.flexDirection = 'column';
div.style.alignItems = 'flex-start';

element = fixtureSync('<vaadin-menu-bar></vaadin-menu-bar>', div);
element.items = [
{ text: 'Item 1' },
{ text: 'Item 2' },
{ text: 'Item 3' },
{ text: 'Item 4' },
{ text: 'Item 5' },
{ text: 'Item 6' },
{ text: 'Item 7' }
];
});

it('flex-overflow', async () => {
await visualDiff(div, `${dir}-flex-overflow`);
});
});

describe('theme', () => {
function makeIcon(img) {
const item = document.createElement('vaadin-context-menu-item');
Expand Down
Binary file not shown.
Binary file not shown.
26 changes: 0 additions & 26 deletions packages/menu-bar/test/visual/material/menu-bar.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -46,32 +46,6 @@ describe('menu-bar', () => {
});
});

describe('column flex', () => {
beforeEach(() => {
div = document.createElement('div');
div.style.display = 'flex';
div.style.padding = '10px';
div.style.maxWidth = '400px';
div.style.flexDirection = 'column';
div.style.alignItems = 'flex-start';

element = fixtureSync('<vaadin-menu-bar></vaadin-menu-bar>', div);
element.items = [
{ text: 'Item 1' },
{ text: 'Item 2' },
{ text: 'Item 3' },
{ text: 'Item 4' },
{ text: 'Item 5' },
{ text: 'Item 6' },
{ text: 'Item 7' }
];
});

it('flex-overflow', async () => {
await visualDiff(div, `${dir}-flex-overflow`);
});
});

describe('theme', () => {
function makeIcon(img) {
const item = document.createElement('vaadin-context-menu-item');
Expand Down
Binary file not shown.
Binary file not shown.

0 comments on commit 189177b

Please sign in to comment.