Skip to content

Commit 435a331

Browse files
committed
rm zindex
1 parent ec3de58 commit 435a331

File tree

15 files changed

+18
-22
lines changed

15 files changed

+18
-22
lines changed

src/app-bar.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ const AppBar = React.createClass({
9595
let styles = StyleSheet.create({
9696
root: {
9797
position: 'relative',
98-
zIndex: 5,
98+
//zIndex: 5,
9999
width: '100%',
100100
display: 'flex',
101101
minHeight: themeVariables.height,

src/card/card.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ const Card = React.createClass({
6868

6969
let mergedStyles = this.mergeStyles({
7070
overflow: 'hidden',
71-
zIndex: 1,
71+
//zIndex: 1,
7272
}, style);
7373

7474
return (

src/date-picker/date-picker-inline.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ const DatePickerInline = React.createClass({
3737
textAlign: 'right',
3838
},
3939
container: {
40-
zIndex: 3,
40+
//zIndex: 3,
4141
width: '100%',
4242
position: 'relative',
4343
display: 'block',

src/dialog.jsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -165,7 +165,7 @@ const DialogInline = React.createClass({
165165
position: 'fixed',
166166
boxSizing: 'border-box',
167167
WebkitTapHighlightColor: 'rgba(0,0,0,0)',
168-
zIndex: 10,
168+
//zIndex: 10,
169169
top: 0,
170170
left: -10000,
171171
width: '100%',
@@ -181,7 +181,7 @@ const DialogInline = React.createClass({
181181
width: '75%',
182182
maxWidth: spacing.desktopKeylineIncrement * 12,
183183
margin: '0 auto',
184-
zIndex: 10,
184+
//zIndex: 10,
185185
};
186186

187187
let body = {
@@ -391,7 +391,7 @@ const DialogInline = React.createClass({
391391
});
392392

393393

394-
const wrapperStyle = {position:'fixed', top:0, left:0, zIndex:20};
394+
const wrapperStyle = {position:'fixed', top:0, left:0}; //zIndex:20};
395395
const Dialog = React.createClass({
396396

397397
propTypes: {

src/drop-down-menu.jsx

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ const DropDownMenu = React.createClass({
9494

9595
getStyles() {
9696
const {disabled} = this.props;
97-
let zIndex = 5; // As AppBar
97+
// let zIndex = 5; // As AppBar
9898
let spacing = this.state.muiTheme.rawTheme.spacing;
9999
let accentColor = this.state.muiTheme.dropDownMenu.accentColor;
100100
let backgroundColor = this.state.muiTheme.menu.backgroundColor;
@@ -138,9 +138,6 @@ const DropDownMenu = React.createClass({
138138
borderTop: 'solid 1px ' + accentColor,
139139
margin: '-1px ' + spacing.desktopGutter + 'px',
140140
},
141-
menu: {
142-
zIndex: zIndex + 1,
143-
},
144141
menuItem: {
145142
paddingRight: spacing.iconSize +
146143
spacing.desktopGutterLess +
@@ -162,7 +159,7 @@ const DropDownMenu = React.createClass({
162159
position: 'fixed',
163160
top: 0,
164161
left: 0,
165-
zIndex: zIndex,
162+
//zIndex: zIndex,
166163
},
167164
};
168165

@@ -249,7 +246,6 @@ const DropDownMenu = React.createClass({
249246
autoWidth={autoWidth}
250247
selectedIndex={selectedIndex}
251248
menuItems={menuItems}
252-
style={styles.menu}
253249
menuItemStyle={this.mergeStyles(styles.menuItem, menuItemStyle)}
254250
hideable={true}
255251
visible={this.state.open}

src/enhanced-switch.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -152,7 +152,7 @@ const EnhancedSwitch = React.createClass({
152152
opacity: 0,
153153
width: '100%',
154154
height: '100%',
155-
zIndex: 2,
155+
//zIndex: 2,
156156
left: 0,
157157
boxSizing: 'border-box',
158158
padding: 0,

src/left-nav.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -156,7 +156,7 @@ const LeftNav = React.createClass({
156156
height: '100%',
157157
width: this.getTheme().width,
158158
position: 'fixed',
159-
zIndex: 10,
159+
//zIndex: 10,
160160
left: isBrowser && Modernizr.csstransforms3d ? 0 : x,
161161
top: 0,
162162
transform: 'translate3d(' + x + 'px, 0, 0)',

src/menu/menu.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -323,7 +323,7 @@ const Menu = React.createClass({
323323
overflow: 'hidden',
324324
position: 'absolute',
325325
top: 0,
326-
zIndex: 1,
326+
//zIndex: 1,
327327
},
328328
item: {
329329
height: 34,

src/menus/menu.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -154,7 +154,7 @@ const Menu = React.createClass({
154154
//it scales y
155155
transition: animated ? Transitions.easeOut('250ms', 'transform') : null,
156156
position: 'absolute',
157-
zIndex: 10,
157+
//zIndex: 10,
158158
top: openDown ? 0 : null,
159159
bottom: !openDown ? 0 : null,
160160
left: !openLeft ? 0 : null,

src/overlay.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ const Overlay = React.createClass({
8585
position: 'fixed',
8686
height: '100%',
8787
width: '100%',
88-
zIndex: 9,
88+
//zIndex: 9,
8989
top: 0,
9090
left: '-100%',
9191
opacity: 0,

0 commit comments

Comments
 (0)