Closed davidmpickett closed 2 days ago
Checking composer.lock changes...
Checking composer.lock changes...
Checking composer.lock changes...
Checking composer.lock changes...
Checking composer.lock changes...
Checking composer.lock changes...
Checking composer.lock changes...
Can we have the new one still say "Add a "Connect with us" block"? It's action oriented and a bit clearer as to what folks should do when they hit this dropdown. Or is there a technical reason why we can't have that any more?
Checking composer.lock changes...
Checking composer.lock changes...
I see failing va/tests/phpunit (phpunit) tests:
I can't see what failed but based on what changed I suspect it is this test that failed.
I updated the test and now phpunit tests are passing. Thanks!
Can we have the new one still say "Add a "Connect with us" block"? It's action oriented and a bit clearer as to what folks should do when they hit this dropdown. Or is there a technical reason why we can't have that any more?
Updated this on both BHLPs and CLPs. CLPs previously called it a panel, but block is more accurate
@davidmpickett I've tested and it seems that everything is working as expected. Did you plan to leave the old label as "Add 'Connect with us' panel" on CLPs or were you going to change that to "block" as well? I could go either way on this.
@davidmpickett I've tested and it seems that everything is working as expected. Did you plan to leave the old label as "Add 'Connect with us' panel" on CLPs or were you going to change that to "block" as well? I could go either way on this.
That label will be hidden in a follow up ticket, so I just left it as is for now.
Checking composer.lock changes...
Accessibility Violations Found:
[
{
"route": "/test-data-sit",
"id": "button-name",
"impact": "critical",
"tags": [
"cat.name-role-value",
"wcag2a",
"wcag412",
"section508",
"section508.22.a",
"ACT",
"TTv5",
"TT6.a"
],
"description": "Ensures buttons have discernible text",
"help": "Buttons must have discernible text",
"helpUrl": "https://dequeuniversity.com/rules/axe/4.7/button-name?application=axeAPI",
"nodes": [
{
"any": [
{
"id": "button-has-visible-text",
"data": null,
"relatedNodes": [],
"impact": "critical",
"message": "Element does not have inner text that is visible to screen readers"
},
{
"id": "aria-label",
"data": null,
"relatedNodes": [],
"impact": "serious",
"message": "aria-label attribute does not exist or is empty"
},
{
"id": "aria-labelledby",
"data": null,
"relatedNodes": [],
"impact": "serious",
"message": "aria-labelledby attribute does not exist, references elements that do not exist or references elements that are empty"
},
{
"id": "non-empty-title",
"data": {
"messageKey": "noAttr"
},
"relatedNodes": [],
"impact": "serious",
"message": "Element has no title attribute"
},
{
"id": "presentational-role",
"data": null,
"relatedNodes": [],
"impact": "minor",
"message": "Element's default semantics were not overridden with role=\"none\" or role=\"presentation\""
}
],
"all": [],
"none": [],
"impact": "critical",
"html": "<button class=\"proofing-element-help\" role=\"tooltip\" data-proofing-help-title=\"About 'Page introduction' field\" data-proofing-help=\"Add an introduction that helps visitors understand if information on the page is relevant to them.\">
<span aria-hidden=\"true\">i</span>
</button>",
"target": [
".field--name-field-intro-text-limited-html > .field__label > .proofing-element-help[role=\"tooltip\"]"
],
"failureSummary": "Fix any of the following:
Element does not have inner text that is visible to screen readers
aria-label attribute does not exist or is empty
aria-labelledby attribute does not exist, references elements that do not exist or references elements that are empty
Element has no title attribute
Element's default semantics were not overridden with role=\"none\" or role=\"presentation\""
},
{
"any": [
{
"id": "button-has-visible-text",
"data": null,
"relatedNodes": [],
"impact": "critical",
"message": "Element does not have inner text that is visible to screen readers"
},
{
"id": "aria-label",
"data": null,
"relatedNodes": [],
"impact": "serious",
"message": "aria-label attribute does not exist or is empty"
},
{
"id": "aria-labelledby",
"data": null,
"relatedNodes": [],
"impact": "serious",
"message": "aria-labelledby attribute does not exist, references elements that do not exist or references elements that are empty"
},
{
"id": "non-empty-title",
"data": {
"messageKey": "noAttr"
},
"relatedNodes": [],
"impact": "serious",
"message": "Element has no title attribute"
},
{
"id": "presentational-role",
"data": null,
"relatedNodes": [],
"impact": "minor",
"message": "Element's default semantics were not overridden with role=\"none\" or role=\"presentation\""
}
],
"all": [],
"none": [],
"impact": "critical",
"html": "<button class=\"proofing-element-help\" role=\"tooltip\" data-proofing-help-title=\"About 'Generate a table of contents from major headings' field\" data-proofing-help=\"By checking this box, all h2's below this point on the page will be linked with with anchor links. This helps users navigate content on very long pages. Do not check this box unless there is at least 2 h2's on the page.\">",
"target": [
".field--name-field-table-of-contents-boolean > .field__label > .proofing-element-help[role=\"tooltip\"]"
],
"failureSummary": "Fix any of the following:
Element does not have inner text that is visible to screen readers
aria-label attribute does not exist or is empty
aria-labelledby attribute does not exist, references elements that do not exist or references elements that are empty
Element has no title attribute
Element's default semantics were not overridden with role=\"none\" or role=\"presentation\""
},
{
"any": [
{
"id": "button-has-visible-text",
"data": null,
"relatedNodes": [],
"impact": "critical",
"message": "Element does not have inner text that is visible to screen readers"
},
{
"id": "aria-label",
"data": null,
"relatedNodes": [],
"impact": "serious",
"message": "aria-label attribute does not exist or is empty"
},
{
"id": "aria-labelledby",
"data": null,
"relatedNodes": [],
"impact": "serious",
"message": "aria-labelledby attribute does not exist, references elements that do not exist or references elements that are empty"
},
{
"id": "non-empty-title",
"data": {
"messageKey": "noAttr"
},
"relatedNodes": [],
"impact": "serious",
"message": "Element has no title attribute"
},
{
"id": "presentational-role",
"data": null,
"relatedNodes": [],
"impact": "minor",
"message": "Element's default semantics were not overridden with role=\"none\" or role=\"presentation\""
}
],
"all": [],
"none": [],
"impact": "critical",
"html": "<button class=\"proofing-element-help\" role=\"tooltip\" data-proofing-help-title=\"About 'Main content' field\" data-proofing-help=\"The main body of the page, which appears below the featured content.\">
<span aria-hidden=\"true\">i</span>
</button>",
"target": [
"button[data-proofing-help-title=\"About 'Main content' field\"]"
],
"failureSummary": "Fix any of the following:
Element does not have inner text that is visible to screen readers
aria-label attribute does not exist or is empty
aria-labelledby attribute does not exist, references elements that do not exist or references elements that are empty
Element has no title attribute
Element's default semantics were not overridden with role=\"none\" or role=\"presentation\""
}
]
},
{
"route": "/user/5323",
"id": "color-contrast",
"impact": "serious",
"tags": [
"cat.color",
"wcag2aa",
"wcag143",
"ACT",
"TTv5",
"TT13.c"
],
"description": "Ensures the contrast between foreground and background colors meets WCAG 2 AA minimum contrast ratio thresholds",
"help": "Elements must meet minimum color contrast ratio thresholds",
"helpUrl": "https://dequeuniversity.com/rules/axe/4.7/color-contrast?application=axeAPI",
"nodes": [
{
"any": [
{
"id": "color-contrast",
"data": {
"fgColor": "#ffffff",
"bgColor": "#02bfe7",
"contrastRatio": 2.18,
"fontSize": "9.8pt (13px)",
"fontWeight": "bold",
"messageKey": null,
"expectedContrastRatio": "4.5:1"
},
"relatedNodes": [
{
"html": "<nav id=\"toolbar-bar\" role=\"navigation\" aria-label=\"Toolbar items\" class=\"toolbar-bar clearfix\" data-offset-top=\"\" style=\"background-color: rgb(2, 191, 231);\">",
"target": [
"#toolbar-bar"
]
}
],
"impact": "serious",
"message": "Element has insufficient color contrast of 2.18 (foreground color: #ffffff, background color: #02bfe7, font size: 9.8pt (13px), font weight: bold). Expected contrast ratio of 4.5:1"
}
],
"all": [],
"none": [],
"impact": "serious",
"html": "<a href=\"/admin\" class=\"toolbar-icon toolbar-icon-menu trigger toolbar-item is-active\" data-drupal-subtrees=\"\" id=\"toolbar-item-administration\" data-toolbar-tray=\"toolbar-item-administration-tray\" role=\"button\" aria-pressed=\"false\">Manage</a>",
"target": [
"#toolbar-item-administration"
],
"failureSummary": "Fix any of the following:
Element has insufficient color contrast of 2.18 (foreground color: #ffffff, background color: #02bfe7, font size: 9.8pt (13px), font weight: bold). Expected contrast ratio of 4.5:1"
},
{
"any": [
{
"id": "color-contrast",
"data": {
"fgColor": "#ffffff",
"bgColor": "#02bfe7",
"contrastRatio": 2.18,
"fontSize": "9.8pt (13px)",
"fontWeight": "bold",
"messageKey": null,
"expectedContrastRatio": "4.5:1"
},
"relatedNodes": [
{
"html": "<nav id=\"toolbar-bar\" role=\"navigation\" aria-label=\"Toolbar items\" class=\"toolbar-bar clearfix\" data-offset-top=\"\" style=\"background-color: rgb(2, 191, 231);\">",
"target": [
"#toolbar-bar"
]
}
],
"impact": "serious",
"message": "Element has insufficient color contrast of 2.18 (foreground color: #ffffff, background color: #02bfe7, font size: 9.8pt (13px), font weight: bold). Expected contrast ratio of 4.5:1"
}
],
"all": [],
"none": [],
"impact": "serious",
"html": "<a href=\"/\" class=\"toolbar-icon toolbar-icon-toolbar-menu toolbar-icon-toolbar-menu-sections trigger toolbar-item\" data-drupal-subtrees=\"\" id=\"toolbar-item-toolbar-menu-sections\" data-toolbar-tray=\"toolbar-item-toolbar-menu-sections-tray\" role=\"button\" aria-pressed=\"false\" style=\"color: rgb(33, 33, 33);\">",
"target": [
"#toolbar-item-toolbar-menu-sections"
],
"failureSummary": "Fix any of the following:
Element has insufficient color contrast of 2.18 (foreground color: #ffffff, background color: #02bfe7, font size: 9.8pt (13px), font weight: bold). Expected contrast ratio of 4.5:1"
},
{
"any": [
{
"id": "color-contrast",
"data": {
"fgColor": "#ffffff",
"bgColor": "#02bfe7",
"contrastRatio": 2.18,
"fontSize": "9.8pt (13px)",
"fontWeight": "bold",
"messageKey": null,
"expectedContrastRatio": "4.5:1"
},
"relatedNodes": [
{
"html": "<nav id=\"toolbar-bar\" role=\"navigation\" aria-label=\"Toolbar items\" class=\"toolbar-bar clearfix\" data-offset-top=\"\" style=\"background-color: rgb(2, 191, 231);\">",
"target": [
"#toolbar-bar"
]
}
],
"impact": "serious",
"message": "Element has insufficient color contrast of 2.18 (foreground color: #ffffff, background color: #02bfe7, font size: 9.8pt (13px), font weight: bold). Expected contrast ratio of 4.5:1"
}
],
"all": [],
"none": [],
"impact": "serious",
"html": "<a href=\"/help\" class=\"toolbar-icon toolbar-icon-help toolbar-item\" style=\"color: rgb(33, 33, 33);\">Knowledge Base</a>",
"target": [
".toolbar-icon-help"
],
"failureSummary": "Fix any of the following:
Element has insufficient color contrast of 2.18 (foreground color: #ffffff, background color: #02bfe7, font size: 9.8pt (13px), font weight: bold). Expected contrast ratio of 4.5:1"
},
{
"any": [
{
"id": "color-contrast",
"data": {
"fgColor": "#ffffff",
"bgColor": "#02bfe7",
"contrastRatio": 2.18,
"fontSize": "9.8pt (13px)",
"fontWeight": "bold",
"messageKey": null,
"expectedContrastRatio": "4.5:1"
},
"relatedNodes": [
{
"html": "<nav id=\"toolbar-bar\" role=\"navigation\" aria-label=\"Toolbar items\" class=\"toolbar-bar clearfix\" data-offset-top=\"\" style=\"background-color: rgb(2, 191, 231);\">",
"target": [
"#toolbar-bar"
]
}
],
"impact": "serious",
"message": "Element has insufficient color contrast of 2.18 (foreground color: #ffffff, background color: #02bfe7, font size: 9.8pt (13px), font weight: bold). Expected contrast ratio of 4.5:1"
}
],
"all": [],
"none": [],
"impact": "serious",
"html": "<a href=\"/user\" class=\"toolbar-icon toolbar-icon-user trigger toolbar-item\" id=\"toolbar-item-user\" data-toolbar-tray=\"toolbar-item-user-tray\" role=\"button\" aria-pressed=\"false\" style=\"color: rgb(33, 33, 33);\">test_Heber_Welch</a>",
"target": [
"#toolbar-item-user"
],
"failureSummary": "Fix any of the following:
Element has insufficient color contrast of 2.18 (foreground color: #ffffff, background color: #02bfe7, font size: 9.8pt (13px), font weight: bold). Expected contrast ratio of 4.5:1"
}
]
}
]
Description
Relates to #19544
Testing done
Manual in tugboat
Screenshots
New Connect with Us content block interface
![screencapture-pr19770-drgsfxyuphduaugv2lfadosblcnwadfr-ci-cms-va-gov-block-add-connect-with-us-2024-11-05-15_19_58](https://github.com/user-attachments/assets/70ef3531-8c56-42f5-ae44-8cbe5355afb2)Current Office node Connect with Us interface
![screencapture-prod-cms-va-gov-node-add-office-2024-11-05-19_18_41](https://github.com/user-attachments/assets/ade08d52-cfc9-42f4-8e76-47770343bdec)CLP Node view with old way showing VERY OBVIOUS DRAFT CONTENT while new way does not
![Screenshot 2024-11-05 at 7 07 52 PM](https://github.com/user-attachments/assets/d2fae38c-17ef-4dbc-9d02-aee764d91a82)BHLP Node view with old way showing VERY OBVIOUS DRAFT CONTENT while new way does not
![Screenshot 2024-11-05 at 7 10 24 PM](https://github.com/user-attachments/assets/d8a3303d-6a2e-4ff5-b2f7-9115ed96eee7)QA steps
Part 1 - Create a new Connect with Us Block
Part 2 - Stress test the Connect with Us Block form
Part 3 - Compare it with the existing Office node form
Part 4 - Add it to a Benefit Hub Landing Page
Add a "Connect with us" block
andConnect with us
fields.Part 5 - Add it to a Campaign Landing Page
Add a "Connect with us" panel
andConnect with us
fields.Part 6 - Stress test the BHLP and CLP connection
Part 7 - See the different in published vs unpublished changes
Definition of Done