Skip to content

Commit

Permalink
Buttons: Use copy for button capitalization, not CSS (#1501)
Browse files Browse the repository at this point in the history
  • Loading branch information
machikoyasuda authored Jul 7, 2023
2 parents b4e25bf + 9e12fc5 commit 5c418d5
Show file tree
Hide file tree
Showing 5 changed files with 13 additions and 14 deletions.
12 changes: 6 additions & 6 deletions benefits/locale/en/LC_MESSAGES/django.po
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
msgid ""
msgstr ""
"Report-Msgid-Bugs-To: https://github.com/cal-itp/benefits/issues \n"
"POT-Creation-Date: 2023-06-29 00:40+0000\n"
"POT-Creation-Date: 2023-07-07 02:33+0000\n"
"Language: English\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
Expand Down Expand Up @@ -381,7 +381,7 @@ msgstr ""
"Please enable cookies for this website and"

msgid "core.buttons.return_home"
msgstr "Return home"
msgstr "Return Home"

msgid "core.includes.noscript.brand"
msgstr "JavaScript is disabled"
Expand Down Expand Up @@ -456,10 +456,10 @@ msgid "core.pages.index.headline"
msgstr "Connect your transit benefit to your contactless card"

msgid "core.pages.index.button"
msgstr "Choose Your Provider"
msgstr "Choose your Provider"

msgid "core.pages.index.continue"
msgstr "Get started"
msgstr "Get Started"

msgid "core.pages.agency_index.title"
msgstr "Introduction"
Expand All @@ -471,7 +471,7 @@ msgstr ""
"contactless card"

msgid "core.buttons.back"
msgstr "Go back"
msgstr "Go Back"

msgid "core.pages.logged_out.title"
msgstr "Logged out"
Expand Down Expand Up @@ -596,7 +596,7 @@ msgid "enrollment.pages.index.headline"
msgstr "Your eligibility is confirmed! You’re nearly there."

msgid "enrollment.buttons.payment_partner"
msgstr "Connect Your Card"
msgstr "Connect your Card"

msgid "enrollment.pages.retry.title"
msgstr "We couldn’t connect your bank card"
Expand Down
10 changes: 5 additions & 5 deletions benefits/locale/es/LC_MESSAGES/django.po
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
msgid ""
msgstr ""
"Report-Msgid-Bugs-To: https://github.com/cal-itp/benefits/issues \n"
"POT-Creation-Date: 2023-06-29 00:40+0000\n"
"POT-Creation-Date: 2023-07-07 02:33+0000\n"
"Language: Español\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
Expand Down Expand Up @@ -396,7 +396,7 @@ msgstr ""
"admita cookies. Por favor, active cookies por este sitio web y"

msgid "core.buttons.return_home"
msgstr "Regresar a la página principal"
msgstr "Regresar a la Página Principal"

msgid "core.includes.noscript.brand"
msgstr "JavaScript está inactivo"
Expand Down Expand Up @@ -471,7 +471,7 @@ msgid "core.pages.index.headline"
msgstr "Conecte su beneficio del transporte a su tarjeta de sin contacto"

msgid "core.pages.index.button"
msgstr "Elija Su Proveedor"
msgstr "Elija su Proveedor"

msgid "core.pages.index.continue"
msgstr "Empezar"
Expand All @@ -486,7 +486,7 @@ msgstr ""
"tarjeta de sin contacto"

msgid "core.buttons.back"
msgstr "Regresar a la página principal"
msgstr "Regresar a la Página Principal"

msgid "core.pages.logged_out.title"
msgstr "Cierre sesión"
Expand All @@ -496,7 +496,7 @@ msgid "core.icons.happybus"
msgstr "Icono de autobús con cara sonriente"

msgid "eligibility.buttons.choose"
msgstr "Elija Este Beneficio"
msgstr "Elija este Beneficio"

msgid "eligibility.forms.confirm.submit"
msgstr "Verificación de estatus"
Expand Down
1 change: 0 additions & 1 deletion benefits/static/css/styles.css
Original file line number Diff line number Diff line change
Expand Up @@ -290,7 +290,6 @@ footer .footer-links li a:visited {

.btn.btn-lg.btn-primary {
border-width: 2px;
text-transform: capitalize;
letter-spacing: 0.02em;
font-weight: var(--medium-font-weight);
font-size: calc(20rem / 16);
Expand Down
2 changes: 1 addition & 1 deletion tests/cypress/plugins/helpers.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ export const rateLimitWait = () => {
export const selectAgency = () => {
cy.location("pathname").should("eq", "/");

cy.contains("Choose Your Provider").click();
cy.contains("Choose your Provider").click();
cy.contains(agency.long_name).click();

cy.location("pathname").should("eq", `/eligibility/${agency.slug}`);
Expand Down
2 changes: 1 addition & 1 deletion tests/cypress/specs/help.cy.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ describe("Help page spec", () => {
it("Allows user to go back", () => {
cy.contains("Help").click();

cy.contains("Go back").click();
cy.contains("Go Back").click();

cy.location("pathname").should("eq", "/");
});
Expand Down

0 comments on commit 5c418d5

Please sign in to comment.