Skip to content
This repository has been archived by the owner on Sep 14, 2021. It is now read-only.

Commit

Permalink
feat(Header): Remove notification bell (#630)
Browse files Browse the repository at this point in the history
* feat(Header): Remove notification bell

* Update snapshots
  • Loading branch information
chardos authored Jun 5, 2019
1 parent 92dfa10 commit f39ddd6
Show file tree
Hide file tree
Showing 14 changed files with 279 additions and 569 deletions.
10 changes: 0 additions & 10 deletions react/BellIcon/BellIcon.js

This file was deleted.

1 change: 0 additions & 1 deletion react/BellIcon/BellIcon.svg

This file was deleted.

4 changes: 0 additions & 4 deletions react/Header/Header.less
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,3 @@
display: inline-block;
}
}

.bellWrapper {
display: inline-block;
}
28 changes: 0 additions & 28 deletions react/Header/NotificationsLink/NotificationsLink.js

This file was deleted.

28 changes: 0 additions & 28 deletions react/Header/NotificationsLink/NotificationsLink.less

This file was deleted.

44 changes: 0 additions & 44 deletions react/Header/NotificationsLink/NotificationsLink.test.js

This file was deleted.

65 changes: 0 additions & 65 deletions react/Header/NotificationsLink/NotificationsLinkContainer.js

This file was deleted.

This file was deleted.

3 changes: 0 additions & 3 deletions react/Header/NotificationsLink/constants.js

This file was deleted.

11 changes: 0 additions & 11 deletions react/Header/NotificationsLink/utils.js

This file was deleted.

23 changes: 0 additions & 23 deletions react/Header/NotificationsLink/utils.test.js

This file was deleted.

54 changes: 23 additions & 31 deletions react/Header/UserAccount/UserAccount.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ import React, { Component } from 'react';
import PropTypes from 'prop-types';
import ChevronIcon from '../../ChevronIcon/ChevronIcon';
import Hidden from '../../Hidden/Hidden';
import NotificationsLinkContainer from '../NotificationsLink/NotificationsLinkContainer';
import ScreenReaderOnly from '../../ScreenReaderOnly/ScreenReaderOnly';
import UserAccountMenu from '../UserAccountMenu/UserAccountMenu';
import {
Expand Down Expand Up @@ -106,37 +105,30 @@ export default class UserAccount extends Component {
</label>
</div>

<div className={styles.accountContainer}>
<NotificationsLinkContainer
authenticationStatus={authenticationStatus}
linkRenderer={linkRenderer}
<label
data-automation="user-account-menu-toggle"
className={styles.toggleLabel}
htmlFor="user-account-menu-toggle"
>
<ScreenReaderOnly>Show user menu</ScreenReaderOnly>
<span data-hj-masked={true}>
<Hidden desktop className={styles.menuLabel}>
{mobileMenuLabel}
</Hidden>
<Hidden
mobile
className={styles.menuLabel}
data-automation="user-account-name"
>
{desktopMenuLabel}
</Hidden>
</span>
<ChevronIcon
direction="down"
className={styles.chevron}
svgClassName={styles.chevronSvg}
/>

<label
data-automation="user-account-menu-toggle"
className={styles.toggleLabel}
htmlFor="user-account-menu-toggle"
>
<ScreenReaderOnly>Show user menu</ScreenReaderOnly>
<span data-hj-masked={true}>
<Hidden desktop className={styles.menuLabel}>
{mobileMenuLabel}
</Hidden>
<Hidden
mobile
className={styles.menuLabel}
data-automation="user-account-name"
>
{desktopMenuLabel}
</Hidden>
</span>
<ChevronIcon
direction="down"
className={styles.chevron}
svgClassName={styles.chevronSvg}
/>
</label>
</div>
</label>

<div onClick={this.handleMenuClick} className={styles.toggleContainer}>
<UserAccountMenu
Expand Down
11 changes: 3 additions & 8 deletions react/Header/UserAccount/UserAccount.less
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,6 @@
}
}

.accountContainer {
display: flex;
align-items: center;
}

.toggleLabel {
.touchableText();
display: flex;
Expand Down Expand Up @@ -107,12 +102,12 @@
text-overflow: ellipsis;
display: inline-block;
white-space: nowrap;
max-width: 90px; // ~ 10 characters
max-width: 120px; // ~ 12 characters
@media only screen and (min-width: 385px) {
max-width: 150px; // ~ 16 characters
max-width: 170px; // ~ 18 characters
}
@media only screen and (min-width: 435px) {
max-width: 200px; // ~ 20 characters
max-width: 220px; // ~ 22 characters
}
}

Expand Down
Loading

0 comments on commit f39ddd6

Please sign in to comment.