Skip to content
This repository was archived by the owner on Oct 16, 2024. It is now read-only.

Treat any <a class="facebook-button">...</a> as a generic button.#14

Open
fabacab wants to merge 1 commit intoheroku:masterfrom
fabacab:generic-buttons
Open

Treat any <a class="facebook-button">...</a> as a generic button.#14
fabacab wants to merge 1 commit intoheroku:masterfrom
fabacab:generic-buttons

Conversation

@fabacab
Copy link

@fabacab fabacab commented Aug 31, 2013

This patch allows app developers to use HTML like <a href="…" class="facebook-button">…</a> to create a generic button. Previously, for button-like spacing, there needed to be a <span> that also had to have one of three classes that matched a sprite image. This is awkward in cases where the sprite images don't really match the button functionality. For instance, the HTML to implement a logout button might look like <a href="<?php print $FB->getLogoutUrl();?>" class="facebook-button"><span>Log out of Facebook</span></a>, but this would result in a "speech bubble" icon appearing next to the "log out" button. Dropping the <span> and applying the generic spacing CSS to the facebook-button class directly is clearer and more semantically appropriate.

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.

1 participant