Skip to content

Commit

Permalink
feat: make SuperUpdateButton's button secondary (#1286)
Browse files Browse the repository at this point in the history
* feat: make SuperUpdateButton's button secondary

Signed-off-by: Viraj Sanghvi <virajs@amazon.com>

* Update snapshot tests

Signed-off-by: Viraj Sanghvi <virajs@amazon.com>

* Update CHANGELOG.md

Signed-off-by: Viraj Sanghvi <vsanghvi@gmail.com>

---------

Signed-off-by: Viraj Sanghvi <virajs@amazon.com>
Signed-off-by: Viraj Sanghvi <vsanghvi@gmail.com>
  • Loading branch information
virajsanghvi authored Jul 10, 2024
1 parent ce84822 commit e98bac2
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 6 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@
- [Next Theme] Set base font size to 18px ([#1221](https://github.com/opensearch-project/oui/pull/1221))
- [Next Theme] Revert `font-weight` of OuiButton to normal from semi-bold ([#1222](https://github.com/opensearch-project/oui/pull/1222))
- Convert shorthand palette colors to full 6-char hex ([#1262](https://github.com/opensearch-project/oui/pull/1262))
- Make Super Update Button secondary instead of primary ([#1286](https://github.com/opensearch-project/oui/pull/1286))
- Adjust popover and context menu title styles and tooltip padding ([#1283](https://github.com/opensearch-project/oui/pull/1283))

### 🐛 Bug Fixes
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ exports[`OuiSuperUpdateButton is rendered 1`] = `
<OuiButton
className="ouiSuperUpdateButton"
color="primary"
fill={true}
iconType="refresh"
isDisabled={false}
isLoading={false}
Expand Down Expand Up @@ -41,7 +40,6 @@ exports[`OuiSuperUpdateButton isDisabled 1`] = `
<OuiButton
className="ouiSuperUpdateButton"
color="primary"
fill={true}
iconType="refresh"
isDisabled={true}
isLoading={false}
Expand All @@ -68,7 +66,6 @@ exports[`OuiSuperUpdateButton isLoading 1`] = `
<OuiButton
className="ouiSuperUpdateButton"
color="success"
fill={true}
iconType="kqlFunction"
isDisabled={false}
isLoading={true}
Expand Down Expand Up @@ -101,7 +98,6 @@ exports[`OuiSuperUpdateButton needsUpdate 1`] = `
<OuiButton
className="ouiSuperUpdateButton"
color="success"
fill={true}
iconType="kqlFunction"
isDisabled={false}
isLoading={false}
Expand All @@ -128,7 +124,6 @@ exports[`OuiSuperUpdateButton showTooltip 1`] = `
<OuiButton
className="ouiSuperUpdateButton"
color="primary"
fill={true}
iconType="refresh"
isDisabled={false}
isLoading={false}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,6 @@ export class OuiSuperUpdateButton extends Component<OuiSuperUpdateButtonProps> {
<OuiButton
className={classes}
color={needsUpdate || isLoading ? 'success' : 'primary'}
fill
iconType={needsUpdate || isLoading ? 'kqlFunction' : 'refresh'}
textProps={{
...restTextProps,
Expand Down

0 comments on commit e98bac2

Please sign in to comment.