Skip to content

Commit

Permalink
RDUCP-289: adding Provider Login Buttons pattern (#650)
Browse files Browse the repository at this point in the history
* Adding Provider Login Button pattern

* Bug fixing

* Fixes on preview

* Update CODEOWNERS

* Small change to keep alphabetic order

* improving based on feedback
  • Loading branch information
rugoncalves committed Jan 12, 2023
1 parent 09b6501 commit 9bd0d51
Show file tree
Hide file tree
Showing 3 changed files with 80 additions and 1 deletion.
2 changes: 1 addition & 1 deletion CODEOWNERS
Validating CODEOWNERS rules …
Original file line number Diff line number Diff line change
@@ -1 +1 @@
@bruno-colaco-os @glc-outsystems @gnbm @rugoncalves
* @bruno-colaco-os @glc-outsystems @os-jsplopes @gnbm @rugoncalves
77 changes: 77 additions & 0 deletions src/scss/04-patterns/06-utilities/_provider-login-button.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,77 @@
/*! Patterns - Utilities - Provider Login Button */
////
/// @group Utilities-Provider_Login_Button
/// Patterns - Utilities - Provider Login Button

.btn.btn-provider-login {
background: var(--color-neutral-0);
border-color: var(--color-neutral-6);
border-radius: 0;
&-logo {
&-only {
padding: 10px;
.btn-provider-login-text {
display: none;
-servicestudio-display: none !important;
}
}
svg {
height: 100%;
width: 100%;
}
}
&.btn- {
&small {
padding: 0 16px;
&.btn-provider-login-logo-only {
padding: 5px;
}
}
&large {
padding: 10px 15px;
}
}
&.soft {
border-radius: var(--border-radius-soft);
}
&.rounded {
border-radius: var(--border-radius-rounded);
}
.btn-provider-login {
&-logo {
border-radius: 50%;
height: 20px;
width: 20px;
}
&-text {
color: var(--color-neutral-7);
margin-left: 10px;
white-space: nowrap;
}
}
}

.phone .layout {
.btn.btn-provider-login {
&.btn-provider-login-logo-only {
width: 50px;
&.btn- {
&small {
width: 40px;
}
&large {
width: 55px;
}
}
}
.btn-provider-login-text-name {
text-align: left;
width: 70px;
-servicestudio-display: inline-block;
}

&.btn-small .btn-provider-login-text-name {
width: 53px;
}
}
}
2 changes: 2 additions & 0 deletions src/scss/OutSystemsUI.scss
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,7 @@
/*! - Button Loading */
/*! - Center Content */
/*! - Margin Container */
/*! - Provider Login Button */
/*! - Separator */
/*! - Pull to Refresh */
/*! - List Updating */
Expand Down Expand Up @@ -331,6 +332,7 @@
@import '04-patterns/06-utilities/center-content';
@import '04-patterns/06-utilities/margin-container';
@import '04-patterns/06-utilities/separator';
@import '04-patterns/06-utilities/provider-login-button';
@import '04-patterns/06-utilities/pull-to-refresh';
@import '04-patterns/06-utilities/list-updating';

Expand Down

0 comments on commit 9bd0d51

Please sign in to comment.