- Issue created by @crutch
- First commit to issue fork.
- Merge request !626Issue #3504078: Operations Dropbutton improvement, need webform node id/class or form id for a webform node β (Open) created by milosr
- ππ·Croatia milosr Croatia, Montenegro
Hi @crutch,
I don't think it's a good idea for us to style that part on our side, because different clients want different designs.
But Iβve added a class with the webform ID, so you can target the dropdown based on that class and style it as needed.
The class is added to the table element, and the class name is the ID of the webform.
- πΊπΈUnited States crutch
Hi liam, Thank you for this solution, it works.
- ππ·Croatia Ivan616
I have tested the patch from solution #5 β¨ Operations Dropbutton improvement, need webform node id/class or form id for a webform node Active and it adds a class with webform ID to the table.
This is a good approach since you can take the class and make the style you need yourself for the use case you might have.
- Status changed to RTBC
3 months ago 3:58pm 29 July 2025 - ππ·Croatia milosr Croatia, Montenegro
Hi @liam morland
I pushed the fix.
- πΊπΈUnited States jrockowitz Brooklyn, NY
The new class should be prefixed to prevent any naming spacing issues.
webform-results-table-{webform-id}The webform id should be passed through
\Drupal\Component\Utility\Html::cleanCssIdentifier - Merge request !684Issue #3504078: Operations Dropbutton improvement, need webform node id/class... β (Merged) created by jrockowitz
- πΊπΈUnited States jrockowitz Brooklyn, NY
Please review this MR
https://git.drupalcode.org/project/webform/-/merge_requests/684 - πΊπΈUnited States jrockowitz Brooklyn, NY
Moving to RTBC because this is a simple and reasonable improvement.
- πΊπΈUnited States jrockowitz Brooklyn, NY
jrockowitz β changed the visibility of the branch webform-3504078-lkm to hidden.
- πΊπΈUnited States jrockowitz Brooklyn, NY
jrockowitz β changed the visibility of the branch 6.3.x to hidden.
- πΊπΈUnited States jrockowitz Brooklyn, NY
jrockowitz β changed the visibility of the branch 3504078-operations-dropbutton-improvement to hidden.
-
jrockowitz β
committed 516877dc on 6.3.x
Issue #3504078 by liam morland, milosr, jrockowitz, crutch, ivan616:...
-
jrockowitz β
committed 516877dc on 6.3.x
-
jrockowitz β
committed 516877dc on 6.x
Issue #3504078 by liam morland, milosr, jrockowitz, crutch, ivan616:...
-
jrockowitz β
committed 516877dc on 6.x