Skip to content

Commit

Permalink
fix: button class name
Browse files Browse the repository at this point in the history
  • Loading branch information
alangsto committed Aug 28, 2023
1 parent e24a85d commit ccd9415
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 10 deletions.
3 changes: 1 addition & 2 deletions src/components/Sidebar/Sidebar.scss
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,9 @@
line-height: 1.75rem;
}

button.close {
button.chat-close {
top: 0;
right: 0;
background: none;
}

form {
Expand Down
16 changes: 8 additions & 8 deletions src/components/Sidebar/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { useDispatch, useSelector } from 'react-redux';
import { Send } from 'react-feather';
import PropTypes from 'prop-types';
import { sendTrackEvent } from '@edx/frontend-platform/analytics';
import { Button, Icon } from '@edx/paragon';
import { Button, Icon, IconButton } from '@edx/paragon';
import { Close } from '@edx/paragon/icons';
import Disclosure from '../Disclosure';
import ChatBox from '../ChatBox';
Expand Down Expand Up @@ -159,16 +159,16 @@ const Sidebar = ({
<div
className="sidebar position-fixed"
>
<Button
className="close position-absolute m-3 border-0"
<IconButton
className="chat-close position-absolute m-2 border-0"
src={Close}
iconAs={Icon}
data-testid="close-button"
onClick={handleClick}
aria-label="close"
variant="tertiary"
type="button"
>
<Icon src={Close} className={`${disclosureAcknowledged ? '' : 'text-white'}`} size="lg" />
</Button>
variant="primary"
invertColors={!disclosureAcknowledged}
/>
{disclosureAcknowledged ? (getSidebar()) : (<Disclosure />)}
</div>
)
Expand Down

0 comments on commit ccd9415

Please sign in to comment.