Skip to content

Commit

Permalink
WIP Namespace data attributes for Bootstrap
Browse files Browse the repository at this point in the history
As documented upstream in the migration guide:
> Data attributes for all JavaScript plugins are now namespaced to help
distinguish Bootstrap functionality from third parties and your own
code. For example, we use data-bs-toggle instead of data-toggle.

https://getbootstrap.com/docs/5.0/migration/#javascript-2
  • Loading branch information
Dany Marcoux committed Mar 29, 2021
1 parent 30f1b93 commit 0bdbc5f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/api/app/views/layouts/webui/_top_navigation.html.haml
Expand Up @@ -24,7 +24,7 @@
%span.d-block Tasks
.toggler.text-center.justify-content-center.nav-item.dropdown
= link_to('#', class: 'nav-link dropdown-toggle text-light', id: 'top-navigation-profile-dropdown', role: 'button',
'data-toggle': 'dropdown', aria: { haspopup: true, expanded: false }) do
'data-bs-toggle': 'dropdown', aria: { haspopup: true, expanded: false }) do
= image_tag_for(User.session, size: 32, custom_class: 'rounded-circle bg-light me-2')
.dropdown-menu.dropdown-menu-end{ 'aria-labelledby': 'top-navigation-profile-dropdown' }
.dropdown-item
Expand Down

0 comments on commit 0bdbc5f

Please sign in to comment.