-
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
base: main
Are you sure you want to change the base?
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? |
One possible solution for #2890
A variation on the code mentioned in #3074 in another attempt to remove the dependency on bootstrap-tagsinput. Supports the same input scheme as bootstrap-tagsinput, but does have a different look and feel.