Skip to content

Commit 60c6bac

Browse files
author
pipeline
committed
feature(EJ2-4392): Bootstrap theme support prrovided for TypeScript SB for Production
1 parent dc81bfb commit 60c6bac

File tree

5 files changed

+7
-7
lines changed

5 files changed

+7
-7
lines changed

index.html

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,8 @@
3434
<div id="selectdiv" class='e-hidden'>
3535
<ul id="themelist" class="options">
3636
<li class="e-list" id="material"><span class='switch-text'>Material</span><span class='switch-icon material'></span></a></li>
37-
<li class="e-list" id="fabric"><span class='switch-text'>Fabric</span><span class='switch-icon fabric'></span></a></li>
37+
<li class="e-list" id="fabric"><span class='switch-text'>Fabric</span><span class='switch-icon fabric'></span></a></li>
38+
<li class="e-list" id="bootstrap"><span class='switch-text'>Bootstrap</span><span class='switch-icon bootstrap'></span></a></li>
3839
</ul>
3940

4041
</div>

src/common/index.ts

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ const tabList: string[] = ['htab', 'ttab'];
1717
const urlSplit: RegExp = /\b(?!html)\b([A-Za-z-]+)/g;
1818
let execFunction: { [key: string]: Object } = {};
1919
let selectedTheme: string = location.hash.split('/')[1];
20-
let availableThemes: string[] = ['material', 'fabric'];
20+
let availableThemes: string[] = ['material', 'fabric', 'bootstrap'];
2121
let isHashChanged: boolean = true;
2222
let isButtonClick: boolean = false;
2323

@@ -148,11 +148,7 @@ function loadJSON(): void {
148148
selectedTheme = 'material';
149149
}
150150
loadTheme(selectedTheme);
151-
if (selectedTheme === 'fabric') {
152-
enableRipple(false);
153-
} else {
154-
enableRipple(true);
155-
}
151+
enableRipple(selectedTheme === 'material');
156152
overlay();
157153
routeDefault();
158154
showBackButton();
17.7 KB
Loading
662 Bytes
Loading

styles/index.css

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -86,6 +86,9 @@ body {
8686
.switch-icon.fabric {
8787
background: url(images/sb_icons/fabric.png) no-repeat 100% 100%;
8888
}
89+
.switch-icon.bootstrap {
90+
background: url(images/sb_icons/bootstrap.png) no-repeat 100% 100%;
91+
}
8992
#selectdiv {
9093
width:230px;
9194
position:absolute;

0 commit comments

Comments
 (0)