Skip to content

Commit a4d1dc6

Browse files
committed
dropdown classes and id
1 parent 34b8a40 commit a4d1dc6

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

a11y-add-on-for-facetwp.php

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,16 @@ function a11y_addon_transform_facet_markup( $output, $params ) {
126126
// placeholders are bad for UX
127127
$output = str_replace( 'placeholder="Enter keywords"', '', $output );
128128
break;
129-
129+
130+
case 'dropdown':
131+
132+
$output = str_replace( 'facetwp-dropdown', 'facetwp-dropdown a11y-addon-filter', $output );
133+
134+
$id_string = 'id="'.$params['facet']['name'].'" class=';
135+
136+
$output = str_replace('class=', $id_string, $output);
137+
138+
130139
/*
131140
//do we want this?
132141
case 'pager':

0 commit comments

Comments
 (0)