Skip to content

Commit

Permalink
[PRMP-1239] NEW SERVICE updated to be New service (#495)
Browse files Browse the repository at this point in the history
* PRMP-1239

* for pr
  • Loading branch information
mark-start-nhs authored Dec 20, 2024
1 parent 6b29964 commit 3dd0d78
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 3 deletions.
2 changes: 1 addition & 1 deletion app/cypress/e2e/0-ndr-core-tests/homepage.cy.js
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ describe('Home Page', () => {
});

it('displays service banner', { tags: 'regression' }, () => {
cy.get('.govuk-phase-banner__content__tag').should('have.text', 'New Service');
cy.get('.govuk-phase-banner__content__tag').should('have.text', 'New service');
cy.get('.govuk-phase-banner__text').should(
'have.text',
'Your feedback will help us to improve this service.',
Expand Down
2 changes: 1 addition & 1 deletion app/src/components/layout/phaseBanner/PhaseBanner.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ describe('PhaseBanner', () => {
it('renders PhaseBanner with content', () => {
renderComponent();

expect(screen.getByText('New Service')).toBeInTheDocument();
expect(screen.getByText('New service')).toBeInTheDocument();

expect(screen.getByText(/Your/i)).toBeInTheDocument();
expect(screen.getByText(/feedback/i)).toBeInTheDocument();
Expand Down
2 changes: 1 addition & 1 deletion app/src/components/layout/phaseBanner/PhaseBanner.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ function PhaseBanner() {
<div className="nhsuk-width-container">
<div className="govuk-phase-banner__content">
<strong className="govuk-tag govuk-phase-banner__content__tag">
New Service
New service
</strong>
<p className="govuk-phase-banner__text">
Your {linkToFeedbackPage} will help us to improve this service.
Expand Down
4 changes: 4 additions & 0 deletions app/src/styles/App.scss
Original file line number Diff line number Diff line change
Expand Up @@ -793,6 +793,10 @@ $hunit: '%';
border: none;
}

.govuk-phase-banner__content__tag {
text-transform: none;
}

.govuk-warning-text__icon {
border: 3px solid $color_nhsuk-yellow;
background: $color_nhsuk-yellow;
Expand Down

0 comments on commit 3dd0d78

Please sign in to comment.