Skip to content

Commit

Permalink
fix(MobileHeader): fix padding in showcase
Browse files Browse the repository at this point in the history
  • Loading branch information
Sofiya Pavlenko committed Sep 24, 2024
1 parent 50155e0 commit 54fbf9e
Show file tree
Hide file tree
Showing 7 changed files with 14 additions and 3 deletions.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Original file line number Diff line number Diff line change
Expand Up @@ -52,4 +52,13 @@ body {
justify-content: center;
min-height: 250px;
}

&__side-item {
padding: 10px;
background: none;
border: none;
outline: none;
cursor: pointer;
margin: 0;
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -97,16 +97,17 @@ export function MobileHeaderShowcase() {
];

const sideItem = (
<div
<button
className={b('side-item')}
onClick={() => {
ref?.current?.dispatchEvent(
getMobileHeaderCustomEvent('MOBILE_PANEL_TOGGLE', {panelName: 'settings'}),
);
}}
aria-label="settings"
>
<Icon data={Gear} size={20} />
</div>
</button>
);

return (
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,9 @@ import {test} from '~playwright/core';
import {MobileHeaderStories} from './helpersPlaywright';

test.describe('MobileHeader', () => {
test('render story: <Showcase>', async ({mount, expectScreenshot}) => {
test('render story: <Showcase>', async ({mount, expectScreenshot, defaultDelay}) => {
await mount(<MobileHeaderStories.Showcase />, undefined, {width: 390, height: 844});
await defaultDelay();

await expectScreenshot();
});
Expand Down

0 comments on commit 54fbf9e

Please sign in to comment.