Skip to content

Commit 5be6397

Browse files
authored
Merge pull request #24 from bootstrap-styled/dev
Dev
2 parents 387f2c4 + 00f0039 commit 5be6397

File tree

6 files changed

+15
-26
lines changed

6 files changed

+15
-26
lines changed

.travis.yml

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,6 @@ branches:
77
except:
88
- gh-pages # will be deployed to, no need to build it
99

10-
cache:
11-
directories:
12-
- node_modules
13-
1410
before_install:
1511
- npm install -g npm
1612
# const
@@ -57,7 +53,7 @@ jobs:
5753

5854
# Job: Release
5955
- stage: release
60-
if: branch = master
56+
if: branch = master AND type = push AND fork = false
6157
node_js:
6258
- 'lts/*'
6359
skip_cleanup: true
@@ -66,7 +62,7 @@ jobs:
6662

6763
# Job: Page
6864
- stage: deploy
69-
if: branch = master
65+
if: branch = master AND type = push AND fork = false
7066
node_js:
7167
- 'lts/*'
7268
script:

package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -223,11 +223,11 @@
223223
"lint-staged"
224224
],
225225
"dependencies": {
226-
"bootstrap-styled": "^2.0.3",
227-
"@bootstrap-styled/v4": "^1.2.2",
226+
"bootstrap-styled": "^2.1.0",
227+
"@bootstrap-styled/v4": "^1.2.6",
228228
"@bootstrap-styled/css-mixins": "^1.1.0",
229229
"@bootstrap-styled/css-utils": "^1.1.0",
230-
"@bootstrap-styled/provider": "^1.2.0",
230+
"@bootstrap-styled/provider": "^1.3.0",
231231
"@bootstrap-styled/utils": "1.6.1",
232232
"classnames": "^2.2.5",
233233
"lodash.omit": "^4.5.0",

src/NavigationBar/tests/theme.test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ describe('makeTheme', () => {
1515
});
1616
it('should create scope', () => {
1717
const customTheme = {
18-
'$zindex-overlay': '2050',
18+
navigationBar: { '$zindex-overlay': '2050' },
1919
};
2020
expect(typeof makeTheme(customTheme).navigationBar).toEqual('object');
2121
});

src/NavigationBar/theme.js

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,15 @@
1-
import { makeScopedTheme, toMakeScopedTheme } from 'bootstrap-styled/lib/utils';
1+
import { makeScopedTheme, toMakeTheme } from 'bootstrap-styled/lib/utils';
22

3-
4-
const theme = makeScopedTheme({
3+
const theme = makeScopedTheme('navigationBar', {
54
'$zindex-overlay': '2050',
65
'$menu-offset-width': '220px',
76
'$menu-offset-nav-bg-color': 'white',
87
'$menu-offset-nav-box-shadow': 'rgba(0, 0, 0, 0.156863) 0px 3px 10px, rgba(0, 0, 0, 0.227451) 0px 3px 10px',
98
'$menu-offset-nav-transition': '.3s ease',
109
'$overlay-bg': 'rgba(0, 0, 0, 0.3)',
1110

12-
}, 'navigationBar');
11+
});
1312

14-
export const makeTheme = toMakeScopedTheme(theme);
13+
export const makeTheme = toMakeTheme(theme);
1514

1615
export default theme;

src/NavigationStyleguide/tests/theme.test.js

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -11,13 +11,7 @@ describe('makeTheme', () => {
1111
});
1212
it('should create custom theme', () => {
1313
const customTheme = {
14-
'$nav-styleguide-height': '50%',
15-
};
16-
expect(makeThemeNavigation(customTheme).navigationStyleguide['$nav-styleguide-height']).toEqual('50%');
17-
});
18-
it('should create custom theme', () => {
19-
const customTheme = {
20-
'$nav-styleguide-height': '50%',
14+
navigationStyleguide: { '$nav-styleguide-height': '50%' },
2115
};
2216
expect(makeThemeNavigation(customTheme).navigationStyleguide['$nav-styleguide-color']).toEqual('#444444');
2317
expect(makeThemeNavigation(customTheme).navigationStyleguide['$nav-styleguide-height']).toEqual('50%');

src/NavigationStyleguide/theme.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
import { makeScopedTheme, toMakeScopedTheme } from 'bootstrap-styled/lib/utils';
1+
import { makeScopedTheme, toMakeTheme } from 'bootstrap-styled/lib/utils';
22

3-
const theme = makeScopedTheme({
3+
const theme = makeScopedTheme('navigationStyleguide', {
44
'$nav-styleguide-height': '100%',
55
'$nav-styleguide-color': '#444444',
66
'$nav-styleguide-hover-color': '#898989',
@@ -30,8 +30,8 @@ const theme = makeScopedTheme({
3030
sm: 'center',
3131
md: 'left',
3232
},
33-
}, 'navigationStyleguide');
33+
});
3434

35-
export const makeTheme = toMakeScopedTheme(theme);
35+
export const makeTheme = toMakeTheme(theme);
3636

3737
export default theme;

0 commit comments

Comments
 (0)