How to customize buttons in Bubble.io and button UX tips
In this Bubble.io tutorial video we demonstrate how to customize button elements in the Bubble UI editor. We also discuss why using a hover effect can improve UX (user experience) for your app users.
Unlock the power of custom buttons: Learn how to create eye-catching primary and secondary buttons that enhance your app's UX.
Master Bubble's styling secrets: Discover how to leverage styles for consistent button design across your entire application.
Transform your buttons with hover effects: See how simple changes can dramatically improve user interaction and engagement.
Customizing Buttons in Bubble.io
In this video, I'm going to demonstrate how you can customize your buttons. I have two buttons here and in the process of customizing them, making changes, we're going to talk about styling in Bubble, and also UX which stands for user experience. In the course of building our apps, we want to reduce confusion and make our apps as easy to use as possible for our users. So let's dive right into it and we're going to have this as our secondary button, rename it, and this as our primary button.
Styling Buttons in Bubble.io
At the moment, the button is styled as the primary button which is a style that Bubble provides when I created this app. If I toggle off from here or you can do the same thing by clicking remove style, I can then go ahead and I can make changes to the button. You can see the color has changed but this will only apply to this individual button. This is where styles come in which can be accessed through the tab here or through the drop down here on the inspector.
Editing Button Styles
If I go back onto primary button, you can see it reverts back to the primary button style and I can edit the primary button style here. Let's say instead of a blue I want to go for a purple and let's say we want a lot more rounding and to increase the letter spacing because sometimes that looks quite good on a button. Now you can see that both buttons have changed because both are the primary button.
Improving User Experience with Button Hover Effects
Now there's one other thing we can do here which is that when the user hovers over it, this is when we're moving into the UX territory, we want the button to change to indicate that a hover has taken place. So remember I'm in the styles panel because I want this to apply to every primary button so I'm going to say when button is hovered and then select the background color and I'm going to go a little bit darker and we can preview that by toggling it here and then if I hit preview we can see what's happened so far. So now when my mouse goes over the button it changes color on the mouse hover, a good bit of UX to incorporate where possible.
Creating a Secondary Button Style
Let's work on our second button so this is going to be our secondary button and I'm going to start with the primary because I want it to be similar, consistent but let's make a few changes. So I'm going to make the font size a little bit smaller and get rid of the additional letter spacing. Now instead of having it solid to indicate that it's secondary let's give it a border instead. Let's give it a border of two and then we will get rid of the background color and update the font color.
Adding Hover Effects to the Secondary Button
At the moment button hovered okay it's removed the background because I no longer have a background style in the fact but I still want something to happen so in fact I'm going to make the background white and so then when it's hovered background color and then I'm going to make this a slight gray. Let's preview that. So there you see it fades into the slight gray. We could also to really demonstrate that it's been hovered we can change the border color and so rather than sliding the droplet across here to select a lighter purple I'm going to change the transparency. Actually it's not had a huge effect. Okay so there you go it changes the outline of the button as well.
Creating a Reusable Button Style
So I created my secondary button and now let's make a style out of it because I want to be able to deploy this secondary button with my conditional with my styling here elsewhere in my app so I can go on to style and click create new style and this then means that if I was to draw a button down here and I want that to be styled like my secondary button it now carries the style across and if I make changes in here make that really big for some reason you can see the changes are reflected wherever the secondary button is set as the style.
Can't find what you're looking for?
Search our 300+ Bubble tutorial videos. Start learning no code today!
Flexible Pricing Plans to Fit Your No-Code Journey
Choose the plan that aligns with your goals and start building your startup today.
Have questions?
We have answers!
Find answers to common questions about our membership plans, programs, and more.
Both plans offer full access to our learning resources, community, and support. The Annual plan provides a significant discount (over 15%) compared to paying monthly, and it allows you to lock in your rate for a full year.
Absolutely! You can easily upgrade or downgrade your membership plan at any time by logging into your account and selecting the desired plan. Any unused portion of your current plan will be prorated and applied to your new plan.
As a Planet No Code member, you'll receive a discount on our Bubble coaching sessions. Monthly members receive a 10% discount, while Annual members receive a 17.5% discount. To redeem your discount, simply log into your account and book a coaching session through our platform.
Our 8-week intensive mentorship program is designed to provide personalized guidance and support to help you accelerate your startup journey. You'll be matched with a startup expert who will work with you one-on-one to set goals, overcome challenges, and make rapid progress.
To apply for the Mastery Program, simply click the "Request Invitation" button on our pricing page and fill out the application form. Our team will review your application and schedule a call with you to discuss your goals and determine if the program is a good fit for your needs.
We accept all major credit cards, including Visa, Mastercard, American Express, and Discover.
While we don't offer a free trial, we do provide a 14-day money-back guarantee. If you're not completely satisfied with your membership within the first 14 days, simply contact our support team, and we'll issue a full refund.
If you decide that Planet No Code isn't the right fit for you, you can cancel your membership at any time by logging into your account and navigating to the subscription management page. Click the "Cancel Membership" button, and your membership will be terminated at the end of your current billing cycle.