Skip to content
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

[4.0] Move searchtools, sort and item count to dropdown #17059

Merged
merged 4 commits into from
Jul 12, 2017

Conversation

ciar4n
Copy link
Contributor

@ciar4n ciar4n commented Jul 10, 2017

Pull Request for Issue # .

Summary of Changes

Moves searchtools, sort and item count to a dropdown menu under a 'Table Options' toggle in list views.

Testing Instructions

Apply patch and navigate to list view (Articles).

Before

searchtools1

After

searchtools2

Documentation Changes Required

Yes

@joomla-cms-bot joomla-cms-bot added Language Change This is for Translators PR-4.0-dev labels Jul 10, 2017
@brianteeman
Copy link
Contributor

Can you make the dropdown collapse when you click away please

@ghost
Copy link

ghost commented Jul 11, 2017

I have tested this item ✅ successfully on abdd678

Hint: Dropdown-Collapse works if changing Position iE. "::None::" to "- Select Position -".


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/17059.

@ciar4n
Copy link
Contributor Author

ciar4n commented Jul 11, 2017

@brianteeman Dropdown now closes with click away

@ghost
Copy link

ghost commented Jul 11, 2017

I have tested this item ✅ successfully on 1e72e40


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/17059.

.custom-select {
&.active {
color: #fff;
background: #fefefe url("data:image/svg+xml;charset=utf8,%3Csvg xmlns=\'http://www.w3.org/2000/svg\' viewBox=\'0 0 4 5\'%3E%3Cpath fill=\'%23fff\' d=\'M2 0L0 2h4zm0 5L0 3h4z\'/%3E%3C/svg%3E") no-repeat scroll right .75rem center / 8px 10px;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

#fefefe >> $white-offset

@@ -110,7 +110,7 @@
self.filterButton.addEventListener('click', function(e) {
self.toggleFilters();
e.stopPropagation();
e.preventDefault();
e.preventDefault();
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Remove whitespace after e.preventDefault();

@brianteeman
Copy link
Contributor

I have tested this item ✅ successfully on 1e72e40


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/17059.

@brianteeman
Copy link
Contributor

works great with core. Looks odd with com-patchtester. not sure if thats an issue or not


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/17059.

@mbabker
Copy link
Contributor

mbabker commented Jul 11, 2017

com_patchtester doesn't use search tools since it's not using the "legacy" MVC. So I'm kind of winging it in the 4.0 layouts to make it look similar.

@brianteeman
Copy link
Contributor

@mbabker all good then ;)

@wilsonge wilsonge merged commit 06fe314 into joomla:4.0-dev Jul 12, 2017
@wilsonge wilsonge added this to the Joomla 4.0 milestone Jul 12, 2017
@ciar4n ciar4n deleted the searchtools-drop branch July 13, 2017 22:43
brianteeman pushed a commit to brianteeman/joomla-cms that referenced this pull request Jul 14, 2017
* Move searchtools to dropdown

* Add eventlistener to body to close dropdown
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Language Change This is for Translators
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

6 participants