Skip to content

Commit

Permalink
Merge pull request #24 from MichaelMarcialis/unified-resizable-button-mm
Browse files Browse the repository at this point in the history
Suggested Resizable Button Changes
  • Loading branch information
stratoula authored Aug 8, 2022
2 parents e2cafff + 917c234 commit e5b11f3
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 17 deletions.
Original file line number Diff line number Diff line change
@@ -1,12 +1,8 @@

.unifiedTextLangEditor--resizableButtonWrapper {
position: relative;
}

.unifiedTextLangEditor--resizableButtonContainer {
position: absolute;
width: 100%;
top: $euiSizeS;
bottom: 0;
left: 0;
right: 0;
display: flex;
flex-direction: column;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,16 +22,14 @@ export function ResizableButton({
const setFocus = (e: React.MouseEvent<HTMLButtonElement>) => e.currentTarget.focus();

return (
<div className="unifiedTextLangEditor--resizableButtonWrapper">
<div className="unifiedTextLangEditor--resizableButtonContainer">
<button
data-test-subj="unifiedTextLangEditor-resize"
className="unifiedTextLangEditor--resizableButton"
onMouseDown={onMouseDownResizeHandler}
onKeyDown={onKeyDownResizeHandler}
onClick={setFocus}
/>
</div>
<div className="unifiedTextLangEditor--resizableButtonContainer">
<button
data-test-subj="unifiedTextLangEditor-resize"
className="unifiedTextLangEditor--resizableButton"
onMouseDown={onMouseDownResizeHandler}
onKeyDown={onKeyDownResizeHandler}
onClick={setFocus}
/>
</div>
);
}
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ export const searchBarStyles = ({ euiTheme }: UseEuiTheme) => {
return {
uniSearchBar: css`
padding: ${euiTheme.size.s};
position: relative;
`,
detached: css`
border-bottom: ${euiTheme.border.thin};
Expand Down

0 comments on commit e5b11f3

Please sign in to comment.