Skip to content
This repository was archived by the owner on Dec 12, 2021. It is now read-only.

changed to use button_to_add instead of link_to_add to make it more sema...#289

Open
leckylao wants to merge 4 commits intoryanb:masterfrom
leckylao:master
Open

changed to use button_to_add instead of link_to_add to make it more sema...#289
leckylao wants to merge 4 commits intoryanb:masterfrom
leckylao:master

Conversation

@leckylao
Copy link

By reading the article by Heydon http://coding.smashingmagazine.com/2013/08/20/semantic-css-with-intelligent-selectors/. And using the https://github.com/Heydon/REVENGE.CSS.

We would see the warning message for link_to_remove is something like: "Do you mean for this to be a link or a ? It does not link to anything!"

And warning message for link_to_add is something like "If you are going to make it look like a button, make it a button, dammit!"

Therefore, I decided to make a PR for this. Using button instead of link to make it more semantic.

@leckylao
Copy link
Author

It works on Rails 4 and tests all passed now

@sunny
Copy link
Contributor

sunny commented Dec 1, 2013

👍

1 similar comment
@singpolyma
Copy link

+1

…n_to_remove with using disabled instead of :_destroy
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants