Skip to content
This repository has been archived by the owner on Jan 16, 2018. It is now read-only.

Update ClayButton markup #236

Closed

Conversation

matuzalemsteles
Copy link
Collaborator

It is necessary that do not add a span when you just want to render an icon, this causes some unwanted behaviors in some components like ClayLabel.

@coveralls
Copy link

Coverage Status

Coverage increased (+0.03%) to 83.139% when pulling 56f1867 on matuzalemsteles:markup-button into a3db874 on metal:master.

{/if}
{/let}

{let $iconContent kind="html"}
Copy link
Collaborator

Choose a reason for hiding this comment

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

Refactor all this, please. You're defining $iconContent and $iconWrapper even when they would be not used.

@@ -57,20 +57,42 @@
{@param? label: html|string}
{@param? spritemap: string}

{let $classes kind="text"}
Copy link
Collaborator

Choose a reason for hiding this comment

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

Define variables right before using them.

@carloslancha
Copy link
Collaborator

Just started reviewing :)

:octocat: Sent from GH.

@carloslancha
Copy link
Collaborator

Resent #238

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.

None yet

3 participants