Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 0 additions & 2 deletions src/SearchField/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ import SearchFieldSubmitButton from './SearchFieldSubmitButton';
export const SEARCH_FIELD_SCREEN_READER_TEXT_LABEL = 'search';
export const SEARCH_FIELD_SCREEN_READER_TEXT_SUBMIT_BUTTON = 'submit search';
export const SEARCH_FIELD_SCREEN_READER_TEXT_CLEAR_BUTTON = 'clear search';
export const SEARCH_FIELD_BUTTON_TEXT = 'search';

const STYLE_VARIANTS = [
'light',
Expand Down Expand Up @@ -178,7 +177,6 @@ SearchField.defaultProps = {
variant: 'light',
disabled: false,
submitButtonLocation: 'internal',
buttonText: SEARCH_FIELD_BUTTON_TEXT,
};

SearchField.Advanced = SearchFieldAdvanced;
Expand Down
8 changes: 8 additions & 0 deletions src/SearchField/index.scss
Original file line number Diff line number Diff line change
Expand Up @@ -129,6 +129,14 @@
.pgn__searchfield__button.btn[type="submit"] {
border-radius: 0;
margin-inline-start: var(--pgn-spacing-search-field-margin-button);

&:focus::before {
border-radius: inherit;
}

&:focus-visible::after {
content: none;
}
}

.pgn__searchfield__iconbutton-submit,
Expand Down
1 change: 0 additions & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,6 @@ export {
SEARCH_FIELD_SCREEN_READER_TEXT_LABEL,
SEARCH_FIELD_SCREEN_READER_TEXT_CLEAR_BUTTON,
SEARCH_FIELD_SCREEN_READER_TEXT_SUBMIT_BUTTON,
SEARCH_FIELD_BUTTON_TEXT,
// @ts-ignore: has yet to be converted to TypeScript
} from './SearchField';
// @ts-ignore: has yet to be converted to TypeScript
Expand Down