After successfully creating a Button component with separate JS and CSS files for styling variations, I am facing an issue where the button instance added to an advert card is not moving up as intended. Upon inspection, it seems that the button in the advert card is not inheriting the styles from the Button CSS file. Is it possible to style this particular button using two different CSS files without affecting other instances?
As shown in the screenshot below, the button should be positioned within the card but currently, it's not aligning properly. Advert Card
I have provided relevant code snippets here, and additional context can be supplied if required. The button itself functions correctly and adheres to the styling rules defined in Button.css, but altering its position using another CSS file has proven challenging.
AdvertItem.js
<Button buttonStyle="btn--blue">Add Now</Button>
Holidays.css
.Button { position: absolute; bottom: 500%; }
I have attempted referencing the button in the CSS using .Button, .btn--blue, and by adding a ClassName to the Button element, but none of these methods seem to work effectively.