I'm using my own CSS stylesheet for the <calcite-button> element, but have not been successful at increasing the default size and font-weight of the text in the button. I've set the [scale] to "l" for large and it's not large enough.
I'm working within ArcGIS Hub and wanting to make a prominent button that directs users to another application (loads on a separate tab). I'm using the calcite-button within a text element on the page. Here is my current HTML. the corner-radius and button-padding styles are working, the font size and weight are not...
Solved! Go to Solution.
I ended up using a standard anchor <a> element styled as a button. Using the --calcite CSS variables ensure the colors will match with the hub site's theme...
<style>
.btn-submit {
text-decoration: none !important;
background-color: var(--calcite-color-brand);
color: var(--calcite-color-text-inverse);
border-radius: 4px;
border: none;
padding: 12px 30px;
min-width: 120px;
font-size: 1.3rem;
font-weight: 500;
outline: none;
}
.btn-submit:hover {
background-color: var(--calcite-color-brand-hover);
outline: none;
color: var(--calcite-color-text-inverse);
cursor: pointer;
}
</style>
<div style="text-align: center;">
<a class="btn-submit" href="***" target="_blank" rel="noopener noreferrer">
Submit Request
</a>
</div>
I ended up using a standard anchor <a> element styled as a button. Using the --calcite CSS variables ensure the colors will match with the hub site's theme...
<style>
.btn-submit {
text-decoration: none !important;
background-color: var(--calcite-color-brand);
color: var(--calcite-color-text-inverse);
border-radius: 4px;
border: none;
padding: 12px 30px;
min-width: 120px;
font-size: 1.3rem;
font-weight: 500;
outline: none;
}
.btn-submit:hover {
background-color: var(--calcite-color-brand-hover);
outline: none;
color: var(--calcite-color-text-inverse);
cursor: pointer;
}
</style>
<div style="text-align: center;">
<a class="btn-submit" href="***" target="_blank" rel="noopener noreferrer">
Submit Request
</a>
</div>