-
Notifications
You must be signed in to change notification settings - Fork 128
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Page feedback tool: Revamp #1916
Conversation
FYI - This request will need a formal approval before we merge it. Additional information can be found with PP via the ref. number BSD-19805 \cc @GormFrank |
Yes. I've sent the ticket ref. #BSD-19805 earlier that morning with @HamzaAburaneh. Wasn't able to review the PR before sending the ticket. Did it later in the afternoon, to make sure that the ticket can refer to final commit of this PR. |
ff2c18e
to
753a18b
Compare
de0d3cc
to
d44fa8a
Compare
d44fa8a
to
bbf74f3
Compare
Force-pushed some fixes:
|
bbf74f3
to
ecf27cb
Compare
@GormFrank gave me a heads up that this has been renamed again to "Page feedback tool (PFT)". So I've just force-pushed the following changes:
|
<td>v7.0</td> | ||
<td></td> | ||
<td>Stable (vX.X.X) (TODO)</td> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This will need to be filled-in at some point.
It'll represent the first GCWeb release that'll come with the page feedback tool.
<td>v7.0</td> | ||
<td></td> | ||
<td>Stable (vX.X.X) (TODO)</td> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ditto.
Here a working example with the latest working example: https://servicecanada.github.io/wet-boew-demos/GCWeb-PR1916/sites/gc-page-feedback/gc-page-feedback-en.html |
FYI I've marked this as ready for review. Should be alright for PP to take this on now :). Check out the checklist in #1916 (comment) to see what I believe is left. PS: |
ecf27cb
to
6910852
Compare
Ugh just realized I forgot to rename the Didn't change anything else and kept modified dates "as-is". So https://servicecanada.github.io/wet-boew-demos/GCWeb-PR1916/sites/gc-page-feedback/gc-page-feedback-en.html should still be accurate. |
General: * Rename "page success widget" to "page feedback tool" * Turn it into a site component Jekyll: * Change the tool into an include * Use sub-includes for parameter/string variable declarations * Add a pageFeedback variable to enable the tool in page templates * Add pageFeedback sub-variables to optionally override the default values of the tool's form parameters: * institutionopt * themeopt * sectionopt * pageTitle (true re-uses the current page's title, without " - Canada.ca") * language (true re-uses the current page's language) * submissionPage (true re-uses the current page's URL) * Update the page details footer include to accommodate the tool: * Declare col-modified = "col-xs-12" only once at the beginning of variable assignments * Support pageFeedback and prioritize it over report a problem * Make pageFeedback take priority over noReportProblem (i.e. setting former to true and latter to false will show the page feedback tool) SCSS: * Add new classes (tied to the gc-pft class): * nojs-col-sm-12 * nojs-pr-sm-0 * nojs-text-left * Increase the share widget's top margin to make it look vertically-centered when used alongside the tool in small/medium view and over * Depends on the has() pseudo-class HTML: * Rename the gc-pg-hlpfl id/class prefix to gc-pft * Rename the gc-pg-hlpfl-btn class to gc-pft-btns ("s" suffix) * Use a fieldset for "Did you find what you were looking for?" and its yes/no buttons * Change "Did you find what you were looking for?" into a legend * Improve layout: * Remove heading classes * Use form classes (i.e. chkbxrdio-grp, field-name and form-group) * Increase spacing between groups of content * Move the details field's secondary information paragraph below the field * JS mode: * Center-align "Did you find what you were looking for?" in extra-small view * Vertically-center "Did you find what you were looking for?" and yes/no buttons in small view and over * Noscript/Basic HTML mode: * Position the yes button directly below "Did you find what you were looking for?" in all views * Use aria-live regions to announce transition messages to screen reader users: * "Tell us why below:" upon pressing the no button * "Thank you for your feedback." upon pressing the yes button or submitting the no button's questionnaire * Add aria-describedby attributes to: * Programmatically-associate the yes button to the "If not, tell us why below:" paragraph in noscript/basic HTML mode (to make screen readers announce the no button's instructions right after the yes button) * Programmatically-associate the secondary information paragraph to the more details field Content: * Add a visually-hidden "Page feedback" H3 heading * Add a period to the end of "Thank you for your feedback" * Add "below" to the end of "If not, tell us why:" in noscript/basic HTML mode * Add a visually-hidden "Tell us why below:" paragraph in JS mode * Combine "Please provide more details" and "Maximum 300 characters" into the same label * Write all values in an "EN-FR" format, derived from labels Demo pages: * Add a standard demo page (pageFeedback enabled) * Add a custom demo page (pageFeedback with sub-variables) Provisional functionality page: * Portray the widget as stable in the feature availability table * Remove "page success widget" section/example Co-authored-by: David Elisma <david.elisma@tbs-sct.gc.ca>
6910852
to
8068a14
Compare
Guess I spoke too soon... looks like I forgot to rename the tool and the Sorry for these "extra" updates :(. I don't expect to be changing anything else from this point onwards without touching base with PP in advance. |
@Garneauma can you rebuild the working example with the latest changes. Thanks |
Progress checklist:
#1916 (comment)
General:
Jekyll:
pageFeedback
variable to enable the tool in page templatespageFeedback
sub-variables to optionally override the default values of the tool's form parameters:institutionopt
themeopt
sectionopt
pageTitle
(true
re-uses the current page's title, without " - Canada.ca")language
(true
re-uses the current page's language)submissionPage
(true
re-uses the current page's URL)col-modified = "col-xs-12"
only once at the beginning of variable assignmentspageFeedback
and prioritize it over report a problempageFeedback
take priority overnoReportProblem
(i.e. setting former totrue
and latter tofalse
will show the page feedback tool)SCSS:
gc-pft
class):nojs-col-sm-12
nojs-pr-sm-0
nojs-text-left
has()
pseudo-classHTML:
gc-pg-hlpfl
id/class prefix togc-pft
gc-pg-hlpfl-btn
class togc-pft-btns
("s" suffix)fieldset
for "Did you find what you were looking for?" and its yes/no buttonschkbxrdio-grp
,field-name
andform-group
)aria-live
regions to announce transition messages to screen reader users:aria-describedby
attributes to:Content:
H3
headingDemo pages:
pageFeedback
enabled)pageFeedback
with sub-variables)Provisional functionality page:
CC @HamzaAburaneh @LanaStewa @delisma