Skip to content

pantoken-root / formats/components/src / focusOutlineCss

ฟังก์ชัน: focusOutlineCss() ​

focusOutlineCss(options?): string

เบต้า

สร้างบล็อก focus-outline: คำนิยามโทเคน --instui-focus-outline-* พร้อมกับกฎของ ring. ฝังอยู่ใน base.css (ทำให้องค์ประกอบที่โฟกัสได้มีวงแหวนโดยอัตโนมัติ) และสามารถนำกลับมาใช้ใหม่โดยผลลัพธ์แบบเลเยอร์อื่นๆ (เช่น renderer ของ Pendo) ได้ผ่านตัวเลือก selector/tokenSelector.

พารามิเตอร์ ​

options? ​

selector — ตัวเลือกสำหรับองค์ประกอบที่โฟกัสได้; tokenSelector — ตำแหน่งที่คำนิยามโทเคนถูกวาง (ค่าเริ่มต้น :where(:root)).

selector? ​

string

tokenSelector? ​

string

คืนค่า ​

string

สตริง CSS.