Suggestion

No notes defined.

<!-- Default -->
<button type="button" class="sds-suggestion">

</button>

<!-- Loading -->
<button type="button" class="sds-suggestion">

</button>

<button type="button" class="{{ namespace }}suggestion{% for mod in modifiers %} {{ mod }}{% endfor %}{% for mod in classes %} {{ mod }}{% endfor %}"{% if loading %}aria-busy="true"{% endif %}>
	{{ text }}
</button>
  • Content:
    /* variables specific to current element */
    
    $element-specific-variables: "";
    
    .#{$namespace}suggestion {
    
    	/* Save root element context for easy access if nesting is needed */
    
    	$self: &;
    
    
    	/* properties of current element  + media queries */
    	display: flex;
    	@include custom-prop-fallback("background-color","comp-suggestion-background-color");
    	@include custom-prop-fallback("color","comp-suggestion-text-color");
    	@include custom-prop-fallback("border-radius","comp-suggestion-border-radius");
    	@include custom-prop-fallback("padding-inline","comp-suggestion-inset-h");
    	@include custom-prop-fallback("padding-block","comp-suggestion-inset-v");
    
    	/* Pseudo Elements */
    
    	&::before {
    	}
    
    	&::after {
    	}
    
    	/*
    	Include elements that are linked to the current element but have to reside at the root level of the stylesheet
    	(e.g: keyframes)
    	*/
    	@at-root {
    	}
    
    
    	/* children - write selector in full in comments in order to facilitate search */
    
    	// suggestion__childElement
    	&__childElement {
    
    		// follows same logic as parent
    
    	}
    
    
    	/* modifiers */
    
    	// [aria-busy]
    	&[aria-busy] {
    
    		// follows same logic as base element
    
    		@extend %skeletonUnit;
    		@include custom-prop-fallback("color","comp-suggestion-loading-text-color");
    
    	}
    
    	/* random parent element */
    	/*
    	*
    	*   Syntax : .randomParentElt & {}
    	*
    	*/
    
    	/* Pseudo Classes */
    
    	@include hover() {
    		@include custom-prop-fallback("background-color","comp-suggestion-hovered-background-color")
    	}
    
    	@include focus-visible() {
    
    		@include custom-prop-fallback("background-color","comp-suggestion-pressed-background-color");
    		@include box-outline("comp-suggestion-pressed-border-color");
    		@include custom-prop-fallback("outline-offset","comp-suggestion-pressed-offset-inset-h");
    
    	}
    
    	&:focus {
    	}
    
    	&:active {
    	}
    
    	&:focus,
    	&:active {
    	}
    
    }
    	
    
  • URL: /components/raw/suggestion/_suggestion.scss
  • Filesystem Path: components/token-based/actions-and-inputs/suggestion/_suggestion.scss
  • Size: 1.8 KB