Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove round corner for search inputs #6779

Open
wants to merge 1 commit into
base: develop
Choose a base branch
from
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
3 changes: 0 additions & 3 deletions packages/core/src/components/forms/_common.scss
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,6 @@ $control-group-stack: (
box-shadow: input-transition-shadow($input-shadow-color-focus, true), $input-box-shadow-focus;
}

&[type="search"],
&.#{$ns}-round {
border-radius: $pt-input-height;
// override normalize.css
Expand Down Expand Up @@ -152,7 +151,6 @@ $control-group-stack: (
height: $pt-input-height-large;
line-height: $pt-input-height-large;

&[type="search"],
&.#{$ns}-round {
padding: 0 ($input-padding-horizontal * 1.5);
}
Expand All @@ -165,7 +163,6 @@ $control-group-stack: (
padding-left: $input-small-padding;
padding-right: $input-small-padding;

&[type="search"],
&.#{$ns}-round {
padding: 0 ($input-small-padding * 1.5);
}
Expand Down
6 changes: 1 addition & 5 deletions packages/core/src/components/forms/input-group.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,11 +30,7 @@ For _multiline text_: use [**TextArea**](#core/components/text-area) instead.

@## Search input

Apply the attribute `type="search"` to style a text input as a search field. This styling is equivalent
to what is applied using the `Classes.ROUND` modifier class—it is automatically applied for `[type="search"]`
inputs.

Note that some browsers also implement a handler for the <kbd>esc</kbd> key to clear the text in a search field.
Apply the attribute `type="search"` to enable a handler for the <kbd>esc</kbd> key to clear the text in a search field forå some browsers.

@reactExample SearchInputExample

Expand Down