-
Notifications
You must be signed in to change notification settings - Fork 65
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 a view component for tagging, replacing bootstrap-tagsinput #3078
Conversation
6ee6e2c
to
f58de16
Compare
Looking for feedback on if my changes (the ability to add a new tag on the fly) to the original, good widget that I adapted ruin it. Sometimes I think it makes it a bit unwieldly, but it is functional. If people think this is okay to use in this way, Alan wanted a demo or a push to stage for final say. |
f58de16
to
e1eebee
Compare
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 seems like an okay solution to me if Alan approves of the UI. The UI is...unusual...but in some ways it's clearer than the current implementation. See comment about checking for BS4
private | ||
|
||
def bootstrap_version | ||
bootstrap_gem = Gem.loaded_specs['bootstrap'] |
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.
In other places in Spotlight we've added the visually-hidden
class to the close button so it will appear for BS4 and not BS5. Would that be possible here too so we don't have to check the version of the installed gem?
<span aria-hidden="true" class="visually-hidden">×</span> |
Would it be better to use the tag UI that @dnoneill developed for Argo? |
84cb969
to
a621fe1
Compare
d11bfec
to
d63bccb
Compare
d63bccb
to
c677ca5
Compare
Closes #2890
Closes #2962
A variation on the code mentioned in #3074, adding the ability to add new tags on the fly in the same fashion as bootstrap-tagsinput.
This would be the last use of bootstrap-tagsinput and twitter typeahead (typeahead.bundle) in Spotlight.