Skip to content

Commit

Permalink
Patternlab/dp 31679 fix userway email signup (#1874)
Browse files Browse the repository at this point in the history
* fix styles

* update contrast settings data

* update form

* add changelog

* remove rich text link style

* change to link

* Revert "remove rich text link style"

This reverts commit 2b44eb6.

* fix underline color

* approve backstop

* fix links mobile style

---------

Co-authored-by: Arthur Baghdasaryan <62405127+arthurbaghdas@users.noreply.github.com>
  • Loading branch information
clairesunstudio and arthurbaghdas authored Feb 26, 2024
1 parent ca31b04 commit 9f8d513
Show file tree
Hide file tree
Showing 6 changed files with 19 additions and 23 deletions.
6 changes: 6 additions & 0 deletions changelogs/DP-31679.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
Changed:
- project: Patternlab
component: UtilityNav,Button
description: Update contrast settings utility panel data and fix Button with `href` styles. (#1874)
issue: DP-31679
impact: Minor
2 changes: 1 addition & 1 deletion packages/assets/scss/03-organisms/_rich-text.scss
Original file line number Diff line number Diff line change
Expand Up @@ -210,7 +210,7 @@ $heading-indent: $gutter;

// link styles

a {
a:not(.ma__button) {

@include ma-link-underline;
border-bottom-width: 1px;
Expand Down
14 changes: 9 additions & 5 deletions packages/assets/scss/03-organisms/_utility-nav.scss
Original file line number Diff line number Diff line change
Expand Up @@ -297,15 +297,12 @@ $utility-nav-height: 43px;
right: -300px;
}

a {
color: $c-font-inverse;
}

.ma__rich-text {
max-width: 720px;

a {
border-color: $c-font-inverse;
color: $c-font-link;
border-bottom-color: $c-font-link;
}
}

Expand All @@ -325,6 +322,13 @@ $utility-nav-height: 43px;
right: 0;
transition: visibility .3s, top .3s;
}

.ma__rich-text {
a {
color: $c-font-inverse;
border-bottom-color: $c-font-inverse;
}
}
}
}

Expand Down
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
20 changes: 3 additions & 17 deletions packages/patternlab/styleguide/source/_data/utilityNav.json
Original file line number Diff line number Diff line change
Expand Up @@ -41,24 +41,10 @@
"richText": {
"rteElements": [
{
"path": "@molecules/forms/field-submit.twig",
"path": "@atoms/11-text/paragraph.twig",
"data": {
"fieldSubmit": {
"isForm": true,
"action": "https://search.mass.gov/",
"hiddenInputs": "<input type='hidden' tabindex='-1' name='formstackFormSchemaVersion' value='4'><input type='hidden' tabindex='-1' name='formstackFormRendererVersion' value='master'><input type='hidden' tabindex='-1' name='form' value='5560495'><input type='hidden' tabindex='-1' name='viewkey' value='WKfdPIXNKO'><input type='hidden' tabindex='-1' name='password' value=''><input type='hidden' tabindex='-1' name='hidden_fields' value=''><input type='hidden' tabindex='-1' name='_submit' value='1'><input type='hidden' tabindex='-1' name='incomplete' value=''><input type='hidden' tabindex='-1' name='incomplete_email' value=''><input type='hidden' tabindex='-1' name='incomplete_password' value=''><input type='hidden' tabindex='-1' name='latitude' value=''><input type='hidden' tabindex='-1' name='longitude' value=''><input id='fsUserAgent' type='hidden' tabindex='-1' name='fsUserAgent' value='Mozilla/5.0 (Linux; Android 6.0; Nexus 5 Build/MRA58N) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/119.0.0.0 Mobile Safari/537.36'>",
"name": "userWay-signup-form",
"labelText": "If we can email you to ask about your experience with this feature, please add your email.",
"inputText": {
"required": false,
"id": "userWay-signup",
"name": "userWay-signup",
"type": "email",
"placeholder": ""
},
"buttonSearch": {
"text": "Submit"
}
"paragraph": {
"text": "If you'd like to share your feedback on this specific feature and help us make the site more accessible, please <a href='https://www.mass.gov/forms/help-us-test-the-contrast-settings-feature'>fill out this short survey</a>."
}
}
}
Expand Down

0 comments on commit 9f8d513

Please sign in to comment.