Skip to content

Mobile super btn #32

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

Closed
wants to merge 1 commit into from
Closed

Mobile super btn #32

wants to merge 1 commit into from

Conversation

gesseekur
Copy link
Contributor

No description provided.

Verified

This commit was signed with the committer’s verified signature.
audunn Auðunn
@gesseekur gesseekur changed the title Mobile super btn by david Mobile super btn Sep 15, 2020
@gesseekur
Copy link
Contributor Author

@hsurf22 we decided to make this into a pr because theres some additional changes we need for documentation

/**
* standard, large-right-image
*/
btnMode: {
Copy link
Contributor Author

Choose a reason for hiding this comment

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

can you add these new props to storybook so we can test it!

:class="getRowClasses()"
<div class="global--mew-component--mew-super-button">
<div
v-if="btnMode === 'large-right-image'"
Copy link
Contributor Author

Choose a reason for hiding this comment

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

its better to compare this to an object or array rather than the string,

so below:
this.btnModes = ['large-right-image', 'standard']
and then v-if="btnMode === "btnModes[0]"

<div
v-if="btnMode === 'large-right-image'"
class="btn--b large-right-image"
:class="[colorTheme === 'basic' ? 'white titlePrimary--text' : '']"
Copy link
Contributor Author

Choose a reason for hiding this comment

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

same here, I have examples in my code

@gesseekur gesseekur closed this Dec 16, 2020
@gesseekur gesseekur deleted the devop/mobile-super-btn branch December 16, 2020 01:03
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.

None yet

1 participant