I'm wondering why my ui:button components aren't rendering correctly.
This is what the button is supposed to look like
but when I try to style the ui:button component it looks like this:
the actual markup for the button is:
<ui:button class="slds-button slds-button--neutral slds-col--bump-left" press="{!c.back}">Edit</ui:button>
Am I forgetting something?
Edit: so to help clear some things up both pictures are from the exact same button in my app. The first image was created with <button>
, the second is <ui:button>
. I'm wondering why the styles changed when i switched from button to ui:button.
Best Answer
So,
I brought this up with salesforce support. They couldn't provide a good answer. After spinning my wheels for a while i switched over to:
<button class="slds-button slds-button--neutral slds-col--bump-left" onclick="{!c.back}">Edit</button>
lessons learned: avoid ui components.