diff --git a/src/_style.scss b/src/_style.scss index 27cd2b57..8cfb7248 100644 --- a/src/_style.scss +++ b/src/_style.scss @@ -35,22 +35,12 @@ $accent-a-light: #c9f2f5; .nav-tabs { a { color: $primary !important; + background: transparent !important; :hover { color: $primary !important; } } - - .nav-link.active { - border-bottom: 0.175rem solid $primary; - border-top: none; - border-left: none; - border-right: none; - } - - :hover { - border: none; - } } .sr-only { diff --git a/src/common-components/Logistration.jsx b/src/common-components/Logistration.jsx index 2f110d49..f80f50ed 100644 --- a/src/common-components/Logistration.jsx +++ b/src/common-components/Logistration.jsx @@ -1,10 +1,10 @@ import React, { useState } from 'react'; import PropTypes from 'prop-types'; -import { Link } from 'react-router-dom'; +import { Redirect } from 'react-router-dom'; import { sendPageEvent, sendTrackEvent } from '@edx/frontend-platform/analytics'; import { injectIntl, intlShape } from '@edx/frontend-platform/i18n'; -import { Button } from '@edx/paragon'; +import { Button, Tabs, Tab } from '@edx/paragon'; import { FontAwesomeIcon } from '@fortawesome/react-fontawesome'; import { faChevronLeft } from '@fortawesome/free-solid-svg-icons'; @@ -18,6 +18,7 @@ const Logistration = (props) => { const { intl, selectedPage } = props; const tpa = getTpaHint(); const [institutionLogin, setInstitutionLogin] = useState(false); + const [key, setKey] = useState(''); const handleInstitutionLogin = (e) => { sendTrackEvent('edx.bi.institution_login_form.toggled', { category: 'user-engagement' }); @@ -47,17 +48,16 @@ const Logistration = (props) => { : ( <> {!tpa && ( - - - {intl.formatMessage(messages['logistration.register'])} - - - {intl.formatMessage(messages['logistration.sign.in'])} - - + setKey(k)}> + + + )} )} + { key && ( + + )}
{selectedPage === LOGIN_PAGE ?