Skip to content

Commit

Permalink
feat(button): use full corner rounding on icon only variant
Browse files Browse the repository at this point in the history
The icon only variant will always be fully rounded and does not need to
use the calculated value that accounts for wrapping text.
  • Loading branch information
jawinn committed Mar 29, 2024
1 parent 2106301 commit 5de5e16
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions components/button/index.css
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,10 @@ governing permissions and limitations under the License.
--mod-progress-circle-position: absolute;
/* stylelint-disable-next-line spectrum-tools/no-unknown-custom-properties */
--spectrum-downstate-perspective: max(var(--spectrum-downstate-height), var(--spectrum-downstate-width) * var(--spectrum-component-size-width-ratio-down));

&.spectrum-Button--iconOnly {
--spectrum-button-border-radius: var(--spectrum-corner-radius-full);
}
}

.spectrum-Button--sizeS {
Expand Down

0 comments on commit 5de5e16

Please sign in to comment.