-
Notifications
You must be signed in to change notification settings - Fork 64
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
Remove Bootstrap 4 data attributes #3451
Conversation
7f0fa40
to
69a5b3e
Compare
69a5b3e
to
5eb0cca
Compare
@@ -22,8 +22,7 @@ | |||
assert_select "tr[data-edit-for='#{admin_role.id}']" | |||
assert_select 'td', /jane@example.com/ | |||
assert_select 'td', 'Admin' | |||
assert_select "input[type='submit'][data-behavior='destroy-user'][data-target='#{admin_role.id}']," \ | |||
"input[type='submit'][data-behavior='destroy-user'][data-bs-target='#{admin_role.id}']" | |||
assert_select "input[type='submit'][data-behavior='destroy-user'][data-target='#{admin_role.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.
these are not bootstrap targets so we should just use data-target
not data-bs-target
@@ -27,8 +27,7 @@ | |||
end | |||
|
|||
it 'has a checkbox to enable or disable fielded search' do | |||
expect(rendered).to have_selector 'input[data-behavior="enable-feature"][data-target="#search_fields"], ' \ | |||
'input[data-behavior="enable-feature"][data-bs-target="#search_fields"]' | |||
expect(rendered).to have_selector 'input[data-behavior="enable-feature"][data-target="#search_fields"]' |
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.
these are not bootstrap targets so we should just use data-target
not data-bs-target
@@ -4,7 +4,7 @@ | |||
|
|||
<div class="content-block carousel-block item-features"> | |||
<% if solr_documents_features_block.documents? %> | |||
<div id="<%= html_id %>" class="carousel" data-ride="carousel" data-interval="false"> | |||
<div id="<%= html_id %>" class="carousel"> |
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.
these attributes are no longer needed with bootstrap 5
No description provided.