UNPKG

@synergy-design-system/components

Version:

This package provides the base of the Synergy Design System as native web components. It uses [lit](https://www.lit.dev) and parts of [shoelace](https://shoelace.style/). Synergy officially supports the latest two versions of all major browsers (as define

54 lines (44 loc) 2.34 kB
// src/components/textarea/textarea.custom.styles.ts import { css } from "lit"; var textarea_custom_styles_default = css` :host([data-user-invalid]) .textarea--standard { border-color: var(--syn-input-border-color-focus-error); } :host([data-user-invalid]) .textarea--standard.textarea--focused:not(.textarea--disabled) { border-color: var(--syn-input-border-color-focus-error); box-shadow: 0 0 0 var(--syn-focus-ring-width) var(--syn-input-focus-ring-error); } /** #429: Use token for opacity */ .textarea--readonly.textarea--disabled, .textarea--standard.textarea--disabled { opacity: var(--syn-input-disabled-opacity); } .textarea__control { /* Unfortunately we need to add a small margin to the textarea control. This is needed for the new sick 2025 theme, as because of the big border-radius the resize icon will otherwise overlap with the border This added margin needs to be subtracted from the padding of the textarea */ margin: var(--syn-spacing-3x-small); } .textarea--small .textarea__control { /* TODO: Wait for Design response, how to handle this left / right spacing. Design has "--syn-input-spacing-medium" for all sizes, but we have different (coming from shoelace) */ /* We need to subtract the added margin of the textarea control from the padding */ padding: calc(var(--syn-spacing-x-small) - var(--syn-spacing-3x-small)) calc(var(--syn-input-spacing-small) - var(--syn-spacing-3x-small)); } .textarea--medium .textarea__control { /* We need to subtract the added margin of the textarea control from the padding */ padding: calc(var(--syn-spacing-x-small) - var(--syn-spacing-3x-small)) calc(var(--syn-input-spacing-medium) - var(--syn-spacing-3x-small)); } .textarea--large .textarea__control { /* TODO: Wait for Design response, how to handle this left / right spacing. Design has "--syn-input-spacing-medium" for all sizes, but we have different (coming from shoelace) */ /* We need to subtract the added margin of the textarea control from the padding */ padding: calc(var(--syn-spacing-x-small) - var(--syn-spacing-3x-small)) calc(var(--syn-input-spacing-large) - var(--syn-spacing-3x-small)); } `; export { textarea_custom_styles_default }; //# sourceMappingURL=chunk.SHIPVO7H.js.map