-
Notifications
You must be signed in to change notification settings - Fork 14
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
Issue #3415660 by govind.maloo: Arrows supporting Previous and Next buttons on webforms are not rendering as expected #1182
Conversation
@AlexSkrypnyk I have tried multiple approaches but only this is working for me. Let me know if you have any other suggestions. |
@govindmaloo value: attributes.value|raw |
// Fix htmlentity in submit button text. | ||
$element = $variables['element']; | ||
|
||
if (isset($element['#type']) && $element['#type'] == 'submit' && !empty($variables['attributes']['value'])) { |
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.
what if this is type reset
or just a button? the solution should take care of all possible cases
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.
I have tried raw filter but didn't work.
And it should work for all button. I can review if you think this solution can work.
@@ -17,7 +18,7 @@ | |||
{% set children %} | |||
{% include "@atoms/button/button.twig" with { | |||
type: type, | |||
text: attributes.value, |
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.
does attributes.value
contains HTML-converted text? can you try using raw
filter?
@govindmaloo Could you please port the feedback webform from this PR #1163 Also, please port any required tests for that form. Please do not include any CSS changes to the UI Kit - this is a purely preprocess issue and it should not require any style changes. |
This should be added through Drupal attributes.
98b4ee3
to
e57f766
Compare
4ff911a
to
f011b67
Compare
f011b67
to
397c11f
Compare
@AlexSkrypnyk I have updated this branch on top of the latest develop and also added this PR to fix CI build |
9b701e8
to
1cfccc7
Compare
@@ -7,6 +7,7 @@ | |||
{% set classes = [ | |||
'container', | |||
has_parent ? 'js-form-wrapper form-wrapper', | |||
'ct-contianer', |
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.
there is no class ct-container
. Also, this is misspelt
# Conflicts: # .docker/cli.dockerfile # .docker/cli.onlytheme.dockerfile # .docker/cli.sibling.dockerfile
@govindmaloo Could you please remove any unrelated changes and only leave what is necessary for this issue. Thanks |
@AlexSkrypnyk Please review I have updated the branch and removed webform related changes. |
https://www.drupal.org/project/civictheme/issues/3415660
Checklist before requesting a review
[CS-123] Verb in past tense with dot at the end.
Changed
section about WHY something was done if this was not a normal implementationChanged
Screenshots