We actually want to change the style of the button itself. So, I'm going to double click and go into the scope of the button, right, because I want to change the connect button component and not the top bar that is using it. So, the first thing that we wanted was to change the background color. I'm going to click it right here because it's going to help me go to where I need to go. And I'm going to change the background.
So, clicking it right here, I see that I'm using an RGB value. I can take a look at the code as well. And we can see that it's not what we want, right? It's not the color, and it's definitely not the way that we want to code it. So, I'm going to use a variable. As you can see, I have all of the variables from my project available for me here. I'm just going to click it. And as you can see, the change was affected. I can see it on the stage and I can see it in my CSS.
Second thing that I want to do would be to change text color into white, same here. I'm going to use a variable, primaryLight, and I get the design as I want it, right? So, I'm going to switch to preview just to check. Of course, we didn't handle the hover. So, it's almost perfect, but not yet. Let's fix the hover together here in the States manager panel. I'm going to click and lock the element on hover. Now, this is a really cool way to design, locking an element on a specific state. Now I can make the changes and see it in that specific state. Now, as you can see, a new selector have just appeared here when I locked it. We want you to make sure that you see the thing that you added in CodeX. If I wouldn't have this selector, I would be offered to create one, but in this case, we want to change something that already existed. And I'm going to change the background color here as well. Again, let's show you the code that I'm editing. You can see that it's button hover, and I'm going to change it to primary dark. So now when I'm going to reset it back to its normal behavior, switching back to preview, now I can see that the design looks pretty much perfect.
Okay, so let's just make sure that it all looks good, right? I had three states that I previously created, and you can see that it's the same component, right? We see the same top bar component placing all of these three boards, and I see that the design was not affected more than I wanted it to, right? This is the way that it was designed. Same goes with my app component, right? It didn't affect anything that I didn't want to.
Comments