Skip to content

Commit

Permalink
Merge pull request #224 from Northeastern-Electric-Racing/198_Texts_S…
Browse files Browse the repository at this point in the history
…hould_Not_Be_Selectable_By_Default

#198 Texts Should Not Be Selectable By Default
  • Loading branch information
RChandler234 authored Oct 24, 2024
2 parents 4ddd901 + 1d834f3 commit d8997f2
Show file tree
Hide file tree
Showing 6 changed files with 29 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,10 @@
cursor: pointer;
display: inline-block;
font-weight: bold;
-webkit-touch-callout: none;
-webkit-user-select: none;
-khtml-user-select: none;
-moz-user-select: none;
-ms-user-select: none;
user-select: none;
}
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,12 @@
font-family: 'Roboto';
font-size: 12px;
color: #cacaca;
-webkit-touch-callout: none;
-webkit-user-select: none;
-khtml-user-select: none;
-moz-user-select: none;
-ms-user-select: none;
user-select: none;
}

.divider-line {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,12 @@
font-size: 18px;
color: gray;
padding-top: 22px;
-webkit-touch-callout: none;
-webkit-user-select: none;
-khtml-user-select: none;
-moz-user-select: none;
-ms-user-select: none;
user-select: none;
}

.mat-icon {
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
.disable-text-selection {
-webkit-touch-callout: none;
-webkit-user-select: none;
-khtml-user-select: none;
-moz-user-select: none;
-ms-user-select: none;
user-select: none;
}
Original file line number Diff line number Diff line change
@@ -1 +1 @@
<p [style]="style">{{ content }}</p>
<p class="disable-text-selection" [style]="style">{{ content }}</p>
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,8 @@ import { StyleVariant } from 'src/utils/enumerations/style-variant';
*/
@Component({
selector: 'typography',
templateUrl: './typography.component.html'
templateUrl: './typography.component.html',
styleUrls: ['./typography.component.css']
})
export default class Typography implements OnInit {
@Input() variant!: StyleVariant;
Expand Down

0 comments on commit d8997f2

Please sign in to comment.