Change labs/new editor buttons to be based on secondary buttons GitOrigin-RevId: f02565e60be33ff75c217c1ea1d0f24b3b619ed4
@@ -17,7 +17,7 @@ const TryNewEditorButton = () => {
onClick={onClick}
size="sm"
leadingIcon={<MaterialIcon type="experiment" unfilled />}
- variant="info"
+ variant="secondary"
>
{t('try_the_new_editor')}
</OLButton>
@@ -23,7 +23,7 @@ export const LabsActions = () => {
<OLButton
className="ide-redesign-labs-button"
onClick={openEditorRedesignSwitcherModal}
@@ -23,7 +23,7 @@ function PdfPreviewError({ error }: { error: string }) {
components={[
// eslint-disable-next-line react/jsx-key
+ variant="primary"
onClick={() => startCompile()}
/>,
@@ -281,7 +281,7 @@ function TimedOutLogEntry() {
onClick={handleEnableStopOnFirstErrorClick}
@@ -28,7 +28,11 @@ export default function StopOnFirstErrorPrompt() {
components={[<strong />]}
/>{' '}
- <OLButton variant="info" size="sm" onClick={handleDisableButtonClick}>
+ <OLButton
+ size="sm"
+ onClick={handleDisableButtonClick}
+ >
{t('disable_stop_on_first_error')}
</>
@@ -41,7 +41,7 @@ function PreviewLogsPaneMaxEntries({ totalEntries, entriesShown, hasErrors }) {
i18nKey="log_entry_maximum_entries_enable_stop_on_first_error"
key="enable-stop-on-first-error"
@@ -34,5 +34,4 @@ export type ButtonProps = {
| 'premium'
| 'premium-secondary'
| 'link'
- | 'info'
}
@@ -60,6 +60,17 @@
+@mixin labs-button {
+ @include ol-button-variant(
+ $color: var(--content-positive),
+ $background: var(--bg-accent-03),
+ $border: var(--green-40),
+ $hover-background: var(--bg-accent-03),
+ $hover-border: var(--green-40),
+ $borderless: false
+ );
+}
+
@mixin reset-button() {
padding: 0;
cursor: pointer;
@@ -182,13 +182,6 @@
-.ide-redesign-labs-button.btn.btn-info {
- @include ol-button-variant(
- var(--content-positive),
- var(--bg-accent-03),
- var(--green-40),
- false
- );
+.ide-redesign-labs-button.btn.btn-secondary {
+ @include labs-button;
@@ -533,15 +533,10 @@
border-right: 1px solid var(--formatting-btn-border);
-.toolbar-experiment-button.btn.btn-info {
+// Override a secondary button to ensure that the border is visible because
+// overriding a borderless button will not add a border.
+.toolbar-experiment-button.btn-secondary {
max-height: 39px;
font-size: var(--font-size-01);