@@ -88,7 +88,7 @@ class NavigationBar extends React.Component {
88
88
this . props . bookmarked
89
89
}
90
90
91
- // BEM Level: navigator__navigationButtonContainer
91
+ // BEM Level: navigationBar__navigationButtonContainer
92
92
get stopButton ( ) {
93
93
return < button className = { cx ( {
94
94
normalizeButton : true ,
@@ -99,7 +99,7 @@ class NavigationBar extends React.Component {
99
99
/>
100
100
}
101
101
102
- // BEM Level: navigator__navigationButtonContainer
102
+ // BEM Level: navigationBar__navigationButtonContainer
103
103
get reloadButton ( ) {
104
104
return < LongPressButton className = { cx ( {
105
105
normalizeButton : true ,
@@ -112,17 +112,17 @@ class NavigationBar extends React.Component {
112
112
/>
113
113
}
114
114
115
- // BEM Level: navigator
115
+ // BEM Level: navigationBar
116
116
get bookmarkButtonContainer ( ) {
117
117
return < span className = { css (
118
- commonStyles . navigator__buttonContainer ,
119
- commonStyles . navigator__buttonContainer_outsideOfURLbar ,
120
- styles . navigator__buttonContainer_bookmarkButtonContainer
118
+ commonStyles . navigationBar__buttonContainer ,
119
+ commonStyles . navigationBar__buttonContainer_outsideOfURLbar ,
120
+ styles . navigationBar__buttonContainer_bookmarkButtonContainer
121
121
) } >
122
122
< button className = { cx ( {
123
123
normalizeButton : true ,
124
124
withHomeButton : getSetting ( settings . SHOW_HOME_BUTTON ) ,
125
- [ css ( styles . navigator__buttonContainer_bookmarkButtonContainer__bookmarkButton , this . bookmarked && styles . navigator__buttonContainer_bookmarkButtonContainer__bookmarkButton_removeBookmarkButton ) ] : true
125
+ [ css ( styles . navigationBar__buttonContainer_bookmarkButtonContainer__bookmarkButton , this . bookmarked && styles . navigationBar__buttonContainer_bookmarkButtonContainer__bookmarkButton_removeBookmarkButton ) ] : true
126
126
} ) }
127
127
data-l10n-id = { this . bookmarked ? 'removeBookmarkButton' : 'addBookmarkButton' }
128
128
data-test-id = { this . bookmarked ? 'bookmarked' : 'notBookmarked' }
@@ -193,12 +193,12 @@ class NavigationBar extends React.Component {
193
193
return null
194
194
}
195
195
196
- return < div
197
- id = 'navigator '
196
+ return < div id = 'navigationBar'
197
+ data-test- id= 'navigationBar '
198
198
data-frame-key = { this . props . activeFrameKey }
199
199
className = { cx ( {
200
200
titleMode : this . props . titleMode ,
201
- [ css ( styles . navigator , ( this . props . isDarwin && this . props . isFullScreen ) && styles . navigator_isDarwin_isFullScreen , this . props . titleMode && styles . navigator_titleMode , this . props . isWideUrlBarEnabled && styles . navigator_wide ) ] : true
201
+ [ css ( styles . navigationBar , ( this . props . isDarwin && this . props . isFullScreen ) && styles . navigationBar_isDarwin_isFullScreen , this . props . titleMode && styles . navigationBar_titleMode , this . props . isWideUrlBarEnabled && styles . navigationBar_wide ) ] : true
202
202
} ) } >
203
203
{
204
204
this . props . showBookmarkHanger
@@ -210,7 +210,7 @@ class NavigationBar extends React.Component {
210
210
? null
211
211
: < span className = { css (
212
212
commonStyles . navigationButtonContainer ,
213
- styles . navigator__navigationButtonContainer ,
213
+ styles . navigationBar__navigationButtonContainer ,
214
214
) } >
215
215
{
216
216
this . props . isLoading
@@ -223,7 +223,7 @@ class NavigationBar extends React.Component {
223
223
this . props . showHomeButton
224
224
? < span className = { css (
225
225
commonStyles . navigationButtonContainer ,
226
- styles . navigator__navigationButtonContainer ,
226
+ styles . navigationBar__navigationButtonContainer ,
227
227
) } >
228
228
< HomeButton activeTabId = { this . props . activeTabId } />
229
229
</ span >
@@ -237,12 +237,7 @@ class NavigationBar extends React.Component {
237
237
< UrlBar titleMode = { this . props . titleMode } />
238
238
{
239
239
this . props . showPublisherToggle
240
- ? < div className = { css (
241
- this . props . titleMode && styles . navigator__endButtons_titleMode ,
242
- ! this . props . titleMode && styles . navigator__endButtons_notTitleMode
243
- ) } >
244
- < PublisherToggle />
245
- </ div >
240
+ ? < PublisherToggle />
246
241
: null
247
242
}
248
243
</ div >
@@ -253,14 +248,14 @@ const rightMargin = `calc(${globalStyles.spacing.navbarLeftMarginDarwin} / 2)`
253
248
254
249
const styles = StyleSheet . create ( {
255
250
256
- navigator : {
251
+ navigationBar : {
257
252
boxSizing : 'border-box' ,
258
253
display : 'flex' ,
259
254
flexGrow : 1 ,
260
255
alignItems : 'center' ,
261
256
justifyContent : 'center' ,
262
257
fontSize : '20px' ,
263
- minWidth : '0%' , // allow the navigator to shrink
258
+ minWidth : '0%' , // allow the navigationBar to shrink
264
259
maxWidth : '900px' ,
265
260
marginRight : rightMargin ,
266
261
padding : 0 ,
@@ -269,24 +264,22 @@ const styles = StyleSheet.create({
269
264
zIndex : globalStyles . zindex . zindexNavigationBar
270
265
} ,
271
266
272
- navigator_isDarwin_isFullScreen : {
267
+ navigationBar_isDarwin_isFullScreen : {
273
268
marginRight : 0
274
269
} ,
275
270
276
- navigator_titleMode : {
271
+ navigationBar_titleMode : {
277
272
animation : 'fadeIn 1.2s'
278
273
} ,
279
274
280
- navigator_wide : {
275
+ navigationBar_wide : {
281
276
maxWidth : '100%' ,
282
277
marginRight : '0' ,
283
278
justifyContent : 'initial'
284
279
} ,
285
280
286
- // cf: topLevelStartButtonContainer on navigator.js
287
- navigator__navigationButtonContainer : {
288
- // globalStyles.navigationBar.urlbarForm.height + 2px
289
- width : '27px'
281
+ navigationBar__navigationButtonContainer : {
282
+ width : globalStyles . navigationBar . navigationButtonContainer . width
290
283
} ,
291
284
292
285
navigationButton : {
@@ -312,20 +305,20 @@ const styles = StyleSheet.create({
312
305
} ,
313
306
314
307
// cf: navigator__buttonContainer_addPublisherButtonContainer on publisherToggle.js
315
- navigator__buttonContainer_bookmarkButtonContainer : {
308
+ navigationBar__buttonContainer_bookmarkButtonContainer : {
316
309
borderRight : 'none' ,
317
310
borderTopRightRadius : 0 ,
318
311
borderBottomRightRadius : 0
319
312
} ,
320
313
321
- navigator__buttonContainer_bookmarkButtonContainer__bookmarkButton : {
314
+ navigationBar__buttonContainer_bookmarkButtonContainer__bookmarkButton : {
322
315
background : `url(${ bookmarkButton } ) center no-repeat` ,
323
316
backgroundSize : '14px 14px' ,
324
317
width : '100%' ,
325
318
height : '100%'
326
319
} ,
327
320
328
- navigator__buttonContainer_bookmarkButtonContainer__bookmarkButton_removeBookmarkButton : {
321
+ navigationBar__buttonContainer_bookmarkButtonContainer__bookmarkButton_removeBookmarkButton : {
329
322
background : `url(${ bookmarkedButton } ) center no-repeat`
330
323
}
331
324
} )
0 commit comments