Skip to content
Merged
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
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{
"changes": [
{
"packageName": "office-ui-fabric-react",
"comment": "SearchBox: Fix padding left and add padding top and bottom to fix the field overlapping the border.",
"type": "patch"
}
],
"packageName": "office-ui-fabric-react",
"email": "lynam.emily@gmail.com"
}
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,8 @@ export function getStyles(props: ISearchBoxStyleProps): ISearchBoxStyles {
flexDirection: 'row',
flexWrap: 'nowrap',
alignItems: 'stretch',
padding: '0 0 0 8px',
// The 1px top and bottom padding ensure the input field does not overlap the border
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just confirming--these get RTL-ified automatically, right?

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm 90% sure js styling does handle this automagically. I'll confirm.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yes, RTL is automatic

padding: '1px 0 1px 4px',
border: `1px solid ${palette.neutralTertiary}`,
height: 32,
selectors: {
Expand Down Expand Up @@ -61,7 +62,9 @@ export function getStyles(props: ISearchBoxStyleProps): ISearchBoxStyles {
underlined && [
'is-underlined',
{
borderWidth: '0 0 1px 0'
borderWidth: '0 0 1px 0',
// Underlined SearchBox has a larger padding left to vertically align with the waffle in product
padding: '1px 0 1px 8px'
}
],
underlined && disabled && {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,10 +23,10 @@ exports[`SearchBox renders SearchBox correctly 1`] = `
margin-left: 0px;
margin-right: 0px;
margin-top: 0px;
padding-bottom: 0;
padding-left: 8px;
padding-bottom: 1px;
padding-left: 4px;
padding-right: 0;
padding-top: 0;
padding-top: 1px;
}
@media screen and (-ms-high-contrast: active){& {
border: 1px solid WindowText;
Expand Down