Chip Schließen weich
Chip Schließen weich: CSS-Button. Kopiere die Regeln oder den Prompt, der das Ergebnis nachbaut.
Design
CSS
.btn-161 {
display: inline-flex;
align-items: center;
gap: 6px;
font: 500 13px/1 system-ui,sans-serif;
color: #1e40af;
background: #dbeafe;
border-radius: 999px;
padding: 6px 6px 6px 12px
}
.btn-161 button {
width: 18px;
height: 18px;
display: grid;
place-items: center;
font: 700 14px/1 system-ui,sans-serif;
color: #1e40af;
background: transparent;
border: 0;
border-radius: 50%;
cursor: pointer;
transition: background .15s,color .15s
}
.btn-161 button:hover {
background: #1e40af;
color: #fff
}
.btn-161 button:focus-visible {
outline: 2px solid #1e40af;
outline-offset: 1px
}
.btn-161 button:active {
background: #1e3a8a
}
HTML
<span class="btn-161">Design<button aria-label="Remove Design">×</button></span>Prompt
Ein entfernbarer Filter-Chip: hellblaue #dbeafe Pille mit #1e40af 13px medium Label, Padding 6px 12px links und 6px rechts, gefolgt von einem 18px runden Schließen-Button mit Multiplikationszeichen. Der Schließen-Button ist transparent bis zum Hover, dann füllt er sich #1e40af mit weißem x; Active #1e3a8a. Focus: 2px blaue Outline nur auf dem x.