-
-
Notifications
You must be signed in to change notification settings - Fork 79k
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
Convert Collapse accordion from Panels to Cards #18400
Conversation
Could you update the Accordion in |
Yeah, that's fine. We can leave removing the dependency to a future pull request. CC: @mdo for review |
Done for the modal.html collapse. Thank you for your feedbacks |
Overlaps with #17159. |
@@ -19,6 +19,10 @@ | |||
margin-bottom: $card-spacer-y; | |||
} | |||
|
|||
.card-title > a { |
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.
Hmm, in general, we're trying to avoid tag selectors and child selectors.
I did changes 👍 |
+ '</div>' | ||
var showFired = false | ||
var $groups = $(accordionHTML).appendTo('#qunit-fixture').find('.panel') | ||
var $groups = $(accordionHTML).appendTo('#qunit-fixture').find('.card') |
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.
Unexpected var, use let or const instead no-var
Sure I'll work on it ! |
+ '</div>' | ||
var $groups = $(accordionHTML).appendTo('#qunit-fixture').find('.panel') | ||
var $groups = $(accordionHTML).appendTo('#qunit-fixture').find('.card') |
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.
Unexpected var, use let or const instead no-var
+ '<div class="panel"/>' | ||
+ '<div class="panel"/>' | ||
+ '<div class="panel"/>' | ||
var accordionHTML = '<div id="accordion">' |
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.
Unexpected var, use let or const instead no-var
+ '</div>' | ||
var $groups = $(accordionHTML).appendTo('#qunit-fixture').find('.panel') | ||
var $groups = $(accordionHTML).appendTo('#qunit-fixture').find('.card') |
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.
Unexpected var, use let or const instead no-var
+ '</div>' | ||
var $groups = $(accordionHTML).appendTo('#qunit-fixture').find('.panel') | ||
var $groups = $(accordionHTML).appendTo('#qunit-fixture').find('.card') |
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.
Unexpected var, use let or const instead no-var
+ '<div class="panel"/>' | ||
+ '<div class="panel"/>' | ||
+ '<div class="panel"/>' | ||
var accordionHTML = '<div id="accordion">' |
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.
Unexpected var, use let or const instead no-var
+ '</div>' | ||
var $groups = $(accordionHTML).appendTo('#qunit-fixture').find('.panel') | ||
var $groups = $(accordionHTML).appendTo('#qunit-fixture').find('.card') |
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.
Unexpected var, use let or const instead no-var
+ '</div>' | ||
var $groups = $(accordionHTML).appendTo('#qunit-fixture').find('.panel') | ||
var $groups = $(accordionHTML).appendTo('#qunit-fixture').find('.card') |
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.
Unexpected var, use let or const instead no-var
+ '<div class="panel"/>' | ||
+ '<div class="panel"/>' | ||
+ '<div class="panel"/>' | ||
var accordionHTML = '<div id="accordion">' |
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.
Unexpected var, use let or const instead no-var
+ '</div>' | ||
var $groups = $(accordionHTML).appendTo('#qunit-fixture').find('.panel') | ||
var $groups = $(accordionHTML).appendTo('#qunit-fixture').find('.card') |
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.
Unexpected var, use let or const instead no-var
Do we need to silence these Hound errors or is there something else we need to change? |
Oh wait, sorry missed the file that's in—we're working on the test files elsewhere I think. Cool! |
Hi,
Fix for #18375
But with this PR Collapse plugin is now dependent of cards, So if you're ok with that I'll work on how to remove this dependency.
A preview from the result :