fix(quick-260921-bi2): a11y - Administrationsbereich (Gruppen, LDAP, Module, Mandanten, Benutzer)
useButtonType: alle Schaltflaechen ausserhalb der drei echten Formulare (Mandanten/Benutzer/LDAP) erhalten type="button"; die drei tatsaechlichen Absende-Buttons behalten type="submit" (Zahl bleibt 1/1/2, siehe <verify>). noSvgWithoutTitle: Symbole neben sichtbarem Text (Zurueck-Pfeil, Navigations- Icons in der Admin-Seitenleiste) werden dekorativ (aria-hidden="true"); das Schloss-Symbol der LDAP-Standardzuordnung traegt jetzt einen eigenen Titel (admin.ldap.fieldMapping.defaultIcon), weil es ohne begleitenden Text pro Tabellenzeile die ganze Bedeutung allein traegt. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01TPPB4ApQxzSU1rwV2Ffj9J
This commit is contained in:
@@ -677,6 +677,7 @@ export default function AdminLdapPage() {
|
||||
{t('fieldMapping.title')}
|
||||
</h2>
|
||||
<button
|
||||
type="button"
|
||||
onClick={() => setShowMappingForm(true)}
|
||||
className="rounded-md bg-primary px-3 py-1.5 text-xs font-medium text-primary-foreground hover:opacity-90 transition-opacity"
|
||||
>
|
||||
@@ -725,6 +726,7 @@ export default function AdminLdapPage() {
|
||||
strokeLinejoin="round"
|
||||
className="text-muted-foreground"
|
||||
>
|
||||
<title>{t('fieldMapping.defaultIcon')}</title>
|
||||
<rect x="3" y="11" width="18" height="11" rx="2" ry="2" />
|
||||
<path d="M7 11V7a5 5 0 0 1 10 0v4" />
|
||||
</svg>
|
||||
@@ -733,6 +735,7 @@ export default function AdminLdapPage() {
|
||||
<td className="px-4 py-3 text-right">
|
||||
{!mapping.isDefault && (
|
||||
<button
|
||||
type="button"
|
||||
onClick={() => handleRemoveMapping(mapping.id)}
|
||||
className="rounded px-2 py-1 text-xs text-destructive hover:bg-destructive/10 transition-colors"
|
||||
>
|
||||
@@ -1281,6 +1284,7 @@ export default function AdminLdapPage() {
|
||||
|
||||
{/* Save interval changes */}
|
||||
<button
|
||||
type="button"
|
||||
onClick={handleSave}
|
||||
disabled={saving}
|
||||
className="rounded-md bg-primary px-4 py-2 text-sm font-medium text-primary-foreground hover:opacity-90 transition-opacity disabled:opacity-50"
|
||||
@@ -1302,6 +1306,7 @@ export default function AdminLdapPage() {
|
||||
|
||||
{/* Manual sync button (D-14) */}
|
||||
<button
|
||||
type="button"
|
||||
onClick={handleSync}
|
||||
disabled={syncing}
|
||||
className="rounded-md bg-primary px-4 py-2 text-sm font-medium text-primary-foreground hover:opacity-90 transition-opacity disabled:opacity-50"
|
||||
|
||||
Reference in New Issue
Block a user