Automattic\WooCommerce\Blocks\BlockTypes

CustomerAccount::render_caret_iconprivateWC 1.0

Render the caret/chevron icon for the dropdown toggle.

Method of the class: CustomerAccount{}

No Hooks.

Returns

String. SVG markup for the caret icon.

Usage

// private - for code of main (parent) class only
$result = $this->render_caret_icon();

CustomerAccount::render_caret_icon() code WC 10.8.1

private function render_caret_icon() {
	return '<svg class="wc-block-customer-account__caret" width="10" height="6" viewBox="0 0 10 6" fill="none" xmlns="http://www.w3.org/2000/svg">
		<path d="M1 1L5 5L9 1" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/>
	</svg>';
}