diff --git a/src/recommendations/RecommendationsPage.jsx b/src/recommendations/RecommendationsPage.jsx index efec84b3..1ef00def 100644 --- a/src/recommendations/RecommendationsPage.jsx +++ b/src/recommendations/RecommendationsPage.jsx @@ -127,7 +127,7 @@ const RecommendationsPage = (props) => { ) : ( - + )} diff --git a/src/recommendations/tests/RecommendationsPage.test.jsx b/src/recommendations/tests/RecommendationsPage.test.jsx index bc47cd07..856afef5 100644 --- a/src/recommendations/tests/RecommendationsPage.test.jsx +++ b/src/recommendations/tests/RecommendationsPage.test.jsx @@ -112,7 +112,7 @@ describe('RecommendationsPageTests', () => { getPersonalizedRecommendations.mockImplementation(() => Promise.resolve(mockedResponse)); await act(async () => { const recommendationsPage = mount(reduxWrapper()); - expect(recommendationsPage.find('.centered-align-spinner').exists()).toBeTruthy(); + expect(recommendationsPage.find('.spinner--position-centered').exists()).toBeTruthy(); }); }); diff --git a/src/reset-password/ResetPasswordPage.jsx b/src/reset-password/ResetPasswordPage.jsx index 4a78e878..37483e97 100644 --- a/src/reset-password/ResetPasswordPage.jsx +++ b/src/reset-password/ResetPasswordPage.jsx @@ -148,7 +148,7 @@ const ResetPasswordPage = (props) => { const { token } = props.match.params; if (token) { props.validateToken(token); - return ; + return ; } } else if (props.status === PASSWORD_RESET_ERROR) { return ; @@ -198,7 +198,7 @@ const ResetPasswordPage = (props) => { name="submit-new-password" type="submit" variant="brand" - className="stateful-button-width" + className="reset-password--button" state={props.status} labels={{ default: formatMessage(messages['reset.password']), diff --git a/src/sass/_reset_password.scss b/src/sass/_reset_password.scss new file mode 100644 index 00000000..cf7b871c --- /dev/null +++ b/src/sass/_reset_password.scss @@ -0,0 +1,3 @@ +.reset-password--button { + width: 12rem; +}; diff --git a/src/sass/_style.scss b/src/sass/_style.scss index f832ea74..6af1fc84 100644 --- a/src/sass/_style.scss +++ b/src/sass/_style.scss @@ -2,6 +2,7 @@ @import "_base_component.scss"; @import "_registration.scss"; @import "_recommendations_page.scss"; +@import "_reset_password.scss"; // // ---------------------------- // #COLORS @@ -26,7 +27,7 @@ $elevation-level-2-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.15); min-width: 6rem; } -.centered-align-spinner { +.spinner--position-centered { left: 0; right: 0; bottom: 0; @@ -44,10 +45,6 @@ $elevation-level-2-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.15); min-width: 464px !important; } -.stateful-button-width { - width: 12rem; -} - .login-button-width { min-width: 6rem; }