Skip to content

Commit e3c01f9

Browse files
authored
Merge pull request #464 from ember-learn/change-width-sidebar
Increase width sidebar
2 parents 83c60ee + 2b20925 commit e3c01f9

File tree

4 files changed

+10
-10
lines changed

4 files changed

+10
-10
lines changed

addon/styles/components/es-sidebar.css

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
display: none;
1010
}
1111

12-
@media (max-width: 768px) {
12+
@media (max-width: 844px) {
1313
.es-sidebar-toggle {
1414
position: fixed;
1515
bottom: 30px;

addon/styles/sidebar-container.css

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
:root {
2-
--sidebar-width: 16rem;
2+
--sidebar-width: 18.5rem;
33
}
44

55
.sidebar-container {
@@ -19,7 +19,7 @@
1919
grid-column: 2 / span 2;
2020
}
2121

22-
@media (max-width: 768px) {
22+
@media (max-width: 844px) {
2323
.sidebar-container {
2424
display: block;
2525
padding: var(--spacing-4) var(--grid-margin);

docs/components/sidebar.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
The sidebar component can be used together with the sidebar-container class to add a responsive sidebar to the page. If the sidebar is the first element in the sidebar-container it will display as a left sidebar. Otherwise it will display as a right sidebar.
66

7-
The sidebar component will automatically switch to the mobile mode once your browser window is smaller than or equal to 768px.
7+
The sidebar component will automatically switch to the mobile mode once your browser window is smaller than or equal to 844px.
88

99
<style>
1010
.sidebar-container {
@@ -20,7 +20,7 @@ The sidebar component will automatically switch to the mobile mode once your bro
2020
background: #FFF;
2121
}
2222

23-
@media (max-width: 768px) {
23+
@media (max-width: 844px) {
2424
.sidebar-container .es-sidebar {
2525
width: calc(100% - var(--es-sidebar-padding) * 2);
2626
}

tests/integration/components/es-sidebar-test.js

+5-5
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ module('Integration | Component | es-sidebar', function (hooks) {
3636
`);
3737

3838
assert.dom('.sidebar-container .es-sidebar').hasStyle({
39-
width: '256px',
39+
width: '296px',
4040
});
4141

4242
await render(hbs`
@@ -47,10 +47,10 @@ module('Integration | Component | es-sidebar', function (hooks) {
4747
`);
4848

4949
assert.dom('[data-test-content-left]').hasStyle({
50-
width: '684px',
50+
width: '644px',
5151
});
5252
assert.dom('.sidebar-container .es-sidebar').hasStyle({
53-
width: '256px',
53+
width: '296px',
5454
margin: '0px',
5555
});
5656

@@ -62,11 +62,11 @@ module('Integration | Component | es-sidebar', function (hooks) {
6262
`);
6363

6464
assert.dom('.sidebar-container .es-sidebar').hasStyle({
65-
width: '256px',
65+
width: '296px',
6666
margin: '0px',
6767
});
6868
assert.dom('[data-test-content-right]').hasStyle({
69-
width: '684px',
69+
width: '644px',
7070
});
7171
});
7272
});

0 commit comments

Comments
 (0)