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

Style bookmark actions as buttons, closes #2272 #2282

Merged

Conversation

sandbergja
Copy link
Contributor

Since these represent actions that a user would take on their bookmarked
items, let's style them as buttons rather than nav-pills.

These actions are still wrapped in a .bookmarksTools class, just in case
anybody was using this to style their app.

@jcoyne
Copy link
Member

jcoyne commented May 11, 2020

Can you add a before and after screenshot that shows the difference?

@sandbergja
Copy link
Contributor Author

Yeah! Here's without my commit:

before

And with my commit:

after

<%= render_show_doc_actions document_list, document: nil, document_list: @response.documents, url_opts: Blacklight::Parameters.sanitize(params.to_unsafe_h) do |config, inner| %>
<li class="nav-item">
<button class="btn btn-outline-primary">
<%= inner %>
Copy link
Member

Choose a reason for hiding this comment

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

isn't inner going to be links? I'm not sure you'd want a link in a button.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

You are totally right. I force-pushed a change to my branch to avoid this.

@sandbergja sandbergja force-pushed the bookmark_actions_as_buttons branch from 4253fc2 to fb46641 Compare May 24, 2020 23:56
@sandbergja sandbergja force-pushed the bookmark_actions_as_buttons branch from fb46641 to bd4293f Compare March 11, 2021 23:47
@sandbergja
Copy link
Contributor Author

Just force-pushed a commit that uses components, rather than the (now out-of-date) original approach.

@jkeck jkeck merged commit c310fc8 into projectblacklight:master Mar 12, 2021
@sandbergja sandbergja deleted the bookmark_actions_as_buttons branch March 14, 2022 18:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants