Skip to content
This repository was archived by the owner on Dec 28, 2023. It is now read-only.
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
1 change: 1 addition & 0 deletions src/components/api-guide/ApiGuide/ApiGuide.module.scss
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@
[data-state~="responsive.mobileS"] {
.apiGuideImage {
overflow: auto;
justify-content: unset;
img {
width: 90rem;
}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
.apiGuideTable {
width: 75%;
border-radius: 1.6rem;
border-radius: 4px;
overflow: hidden;
border: 1px solid var(--gray-02);
th {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
right: 40px;
z-index: 10;
box-sizing: border-box;
padding: 1rem;
padding: 1.6rem;
margin: 0 auto 30px;
.navigatorContent {
display: flex;
Expand All @@ -26,7 +26,7 @@
background-color: var(--gray-01);
}
&.navigatorSubLink {
margin-left: 0.5rem;
margin-left: 0.8rem;
}
}
}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,15 +1,18 @@
.manageApps {
display: none;

table {
border-spacing: 0;
width: 100%;
padding: 0 5rem;
}

thead {
background-color: var(--gray-02);
height: 5rem;
text-align: var(--text-align-left);
}

th,
td {
padding: 1.6rem;
Expand All @@ -18,18 +21,22 @@
overflow: hidden;
text-overflow: ellipsis;
}

td:last-child,
th:last-child {
white-space: nowrap;
padding: 0 1rem;
}

td:first-child,
th:first-child {
padding-left: 3.2rem;
}

tbody tr:nth-child(even) {
background-color: var(--gray-03);
}

td:nth-child(2n + 3) {
display: flex;
flex-wrap: wrap;
Expand Down Expand Up @@ -84,6 +91,7 @@

.tooltip {
position: relative;

.tooltipText {
visibility: hidden;
width: 13rem;
Expand All @@ -102,6 +110,7 @@
margin-left: -5.5rem;
opacity: 0;
transition: opacity 1s;

&::after {
content: '';
position: absolute;
Expand All @@ -113,8 +122,10 @@
border-color: var(--border-normal) transparent transparent transparent;
}
}

&:hover {
transform: translateY(-2px);

.tooltipText {
visibility: visible;
opacity: 1;
Expand All @@ -126,9 +137,10 @@
border: 0.16rem solid #d6dadb;
border-radius: 0.4rem;
padding: 0.32rem 0.32rem;
font-size: 1.1rem;
font-size: var(--text-size-xxs);
}

.adminScope {
border: 0.1rem solid var(--teal-01);
color: var(--teal-01);
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,10 @@ fieldset .customTextInput:last-child {
align-items: var(--text-align-center);
justify-content: var(--text-align-center);
width: 80%;
input[type='number'],
input[type='text'] {
height: 40px;
}
input[type='number'] {
appearance: none;
&::-webkit-outer-spin-button,
Expand Down Expand Up @@ -215,6 +219,7 @@ input[type='checkbox'] {
height: 1.1rem;
border-radius: 2px;
transition: background-color 0.25s, border-color 0.25s;
top: 3px;
z-index: 1;
}
input:checked + .customCheckbox {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,11 @@ export default function AppRegistrationForm() {
<fieldset>
<div className={styles.formHeaderContainer}>
<h4 className={styles.registerFormHeader}>App information</h4>
<div className={styles.description}>Paste your API token with the admin scope here.</div>
<div className={styles.description}>
<span>
Paste your API token with the admin scope here.
</span>
</div>
</div>
<div className='api-token-wrapper'>
<div className={styles.customTextInput} id='custom-text-input'>
Expand Down Expand Up @@ -121,8 +125,10 @@ export default function AppRegistrationForm() {
<div className={styles.formHeaderContainer}>
<h4 className={styles.registerFormHeader}>Markup</h4>
<div className={styles.description}>
You can earn commission by adding a markup to the price of each trade. Enter your
markup percentage here.
<span>
You can earn commission by adding a markup to the price of each trade. Enter your
markup percentage here.
</span>
</div>
</div>
<div className='input-container'>
Expand Down Expand Up @@ -166,8 +172,10 @@ export default function AppRegistrationForm() {
<div className={styles.formHeaderContainer}>
<h4 className={styles.registerFormHeader}>OAuth details</h4>
<div className={styles.description}>
This allows clients to log in to your app using their Deriv accounts without an API
token.
<span>
This allows clients to log in to your app using their Deriv accounts without an API
token.
</span>
</div>
</div>
<div className='input-container'>
Expand Down Expand Up @@ -233,7 +241,11 @@ export default function AppRegistrationForm() {
<div>
<div className={styles.formHeaderContainer}>
<h4 className={styles.registerFormHeader}>Scope of authorisation</h4>
<div className={styles.description}>Select the scope for your app:</div>
<div className={styles.description}>
<span>
Select the scope for your app:
</span>
</div>
</div>
</div>
<div className={styles.scopesField}>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,14 +8,14 @@ export default function RegisteredAppTabs() {
id="register_button"
className="register-button"
>
Register your application
<label>Register your application</label>
</button>
<button
onClick={() => send("MANAGE_TOGGLE_TAB")}
id="manage_button"
className="manage-button"
>
Manage existing applications
<label>Manage existing applications</label>
</button>
</div>
);
Expand Down
3 changes: 3 additions & 0 deletions src/components/docs/Docs/Sidebar/Sidebar.module.scss
Original file line number Diff line number Diff line change
Expand Up @@ -185,6 +185,9 @@
opacity: unset;
font-size: var(--text-size-xs);
color: var(--text-01);
> span {
font-size: var(--text-size-xs);
}
}
.dropdownList {
margin-top: 1.6rem;
Expand Down
6 changes: 5 additions & 1 deletion src/components/global/Modal/Modal.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,11 @@ export default function Modal({
{type === "success" && <div className={styles.modalImageSuccess} />}
{type === "warning" && <div className={styles.modalImageWarning} />}
<div className={styles.modalTitle}>{title}</div>
<div className={styles.modalDescription}>{description}</div>
<div className={styles.modalDescription}>
<span>
{description}
</span>
</div>
</div>
<div className={styles.modalFooter}>
<Button type="secondary" onClick={onSecondaryButtonClick}>
Expand Down
Loading