-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
Add Unique Toolbar Button IDs #8995
Add Unique Toolbar Button IDs #8995
Conversation
Codecov Report
@@ Coverage Diff @@
## main #8995 +/- ##
=======================================
Coverage ? 82.05%
=======================================
Files ? 100
Lines ? 5962
Branches ? 0
=======================================
Hits ? 4892
Misses ? 1070
Partials ? 0 |
Code Climate has analyzed commit 7871ee7 and detected 0 issues on this pull request. View more on Code Climate. |
@@ -77,6 +77,20 @@ def get_large_dropzone_id(location, reply_to) | |||
end | |||
end | |||
|
|||
# used in views/editor/_toolbar.html.erb |
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.
thanks for the comment here, these can be tough to trace! There is the ability to make view-specific helpers like editor_helper.rb
but often if they only contain a few lines, it can make them harder to find!
</div> | ||
|
||
<div class="btn-group"> | ||
<a aria-label="Help" data-toggle="tooltip" title="Help" data-placement="bottom" class="btn btn-outline-secondary btn-sm" target="_blank" href="/wiki/authoring-help"><i class="fa fa-question-circle" ></i></a> | ||
<a | ||
id="help-button-<%= toolbar_element_id %>" |
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.
appreciate the formatting work here. Thanks!
Awesome, thanks!!! |
* add logic for editor/toolbar partial publiclab#8478 * add unique toolbar button IDs publiclab#8478 * remove trailing whitespaces
* add logic for editor/toolbar partial publiclab#8478 * add unique toolbar button IDs publiclab#8478 * remove trailing whitespaces
* add logic for editor/toolbar partial publiclab#8478 * add unique toolbar button IDs publiclab#8478 * remove trailing whitespaces
* add logic for editor/toolbar partial publiclab#8478 * add unique toolbar button IDs publiclab#8478 * remove trailing whitespaces
Partial fix for #8478
I think this will be relatively simple to review 🤞
Adding unique IDs and common classes to the toolbar buttons used in comment forms.
My eventual goal is to assign click eventHandlers to each button. Having unique IDs will ensure that
e.target
will be accurate, as we've seen with bug fixes for image upload cross-wiring.(This issue is part of the larger Comment Editor Overhaul Project with Outreachy. Refer to Planning Issue #9069 for more context)