UNPKG

carbon-react

Version:

A library of reusable React components for easily building user interfaces.

2 lines (1 loc) 727 B
import o,{css as t}from"styled-components";import{space as r}from"styled-system";import e from"../icon/icon.style.js";import n from"../../style/themes/apply-base-theme.js";import s from"../../style/utils/add-focus-styling.js";const i=o.button.attrs(n).attrs({type:"button"}).withConfig({displayName:"icon-button.style__StyledIconButton",componentId:"sc-efc15704-0"})(["",""],(({disabled:o})=>t(["&&{","}background:transparent;border:none;border-radius:var(--borderRadius050);&:focus{","}&:hover{cursor:",";}&::-moz-focus-inner{border:none;}","{",";position:relative;&:focus{border:none;}}"],r,s(),o?"not-allowed":"pointer",e,o&&t(["color:var(--colorsActionMinorYin030);background-color:transparent;"]))));export{i as default};