Skip to content

Commit

Permalink
Makes add DNS record button primary (#96935)
Browse files Browse the repository at this point in the history
* Makes add record primary button

* Remove space
  • Loading branch information
fditrapani authored Dec 10, 2024
1 parent e45aca8 commit 2c6ebb4
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,9 @@ function DnsAddNewRecordButton( { site, domain, isMobile }: DndAddNewRecordButto
borderless={ isMobile }
href={ domainManagementDnsAddRecord( site, domain, currentRoute ) }
className={ className }
primary
>
<Icon icon={ plus } viewBox="4 4 16 16" size={ 16 } />
<Icon className="add-record__icon" icon={ plus } viewBox="4 4 16 16" size={ 16 } />
{ ! isMobile && __( 'Add a record' ) }
</Button>
);
Expand Down
8 changes: 4 additions & 4 deletions client/my-sites/domains/domain-management/dns/dns-records.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -135,13 +135,13 @@ class DnsRecords extends Component {
);

const buttons = [
<DnsAddNewRecordButton
key="add-new-record-button"
<DnsImportBindFileButton
key="import-bind-file-button"
site={ selectedSite?.slug }
domain={ selectedDomainName }
/>,
<DnsImportBindFileButton
key="import-bind-file-button"
<DnsAddNewRecordButton
key="add-new-record-button"
site={ selectedSite?.slug }
domain={ selectedDomainName }
/>,
Expand Down
7 changes: 7 additions & 0 deletions client/my-sites/domains/domain-management/dns/style.scss
Original file line number Diff line number Diff line change
Expand Up @@ -247,6 +247,13 @@ button.dns__breadcrumb-button {
display: flex;
justify-content: center;
}
.add-record__icon{
fill: var(--studio-gray-80);

@include break-large {
fill: var(--studio-white);
}
}
}

.dns__breadcrumb-button {
Expand Down

0 comments on commit 2c6ebb4

Please sign in to comment.