-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor(deriv_auth_ui): [MOBC-629] Adding semantics to UI components (…
…#321) * chore(deriv_auth_ui):Adding semantics to UI components * chore(deriv_auth_ui):Adding semantics to UI components, fixes based on review comments * chore(deriv_auth_ui):Adding explicitChildNodes: true to Semantics Widgets
- Loading branch information
1 parent
2eaddf5
commit 36a0c1f
Showing
6 changed files
with
182 additions
and
109 deletions.
There are no files selected for viewing
41 changes: 41 additions & 0 deletions
41
packages/deriv_auth_ui/lib/src/core/helpers/semantic_labels.dart
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
/// A class that contains semantic labels for various UI elements in the auth UI flow. | ||
class SemanticsLabels { | ||
// Signup Page | ||
|
||
/// A semantic label for the email field on the signup page. | ||
static String signupEmailFieldSemantic = 'signup_email_field_semantic'; | ||
|
||
/// A semantic label for the signup button on the signup page. | ||
static String signupButtonSemantic = 'signup_button_semantic'; | ||
|
||
/// A semantic label for the referral text field on the signup page. | ||
static String signupReferralTextFieldSemantic = | ||
'signup_referral_field_semantic'; | ||
|
||
// Login Page | ||
|
||
/// A semantic label for the email field on the login page. | ||
static String loginEmailFieldSemantic = 'login_email_field_semantic'; | ||
|
||
/// A semantic label for the password field on the login page. | ||
static String loginPasswordFieldSemantic = 'login_password_field_semantic'; | ||
|
||
// Reset Password Page | ||
|
||
/// A semantic label for the email field on the reset password page. | ||
static String resetPasswordEmailFieldSemantic = | ||
'reset_password_email_field_semantic'; | ||
|
||
/// A semantic label for the reset password button on the reset password page. | ||
static String resetPasswordButtonSemantic = 'reset_password_button_semantic'; | ||
|
||
// Starter Page | ||
|
||
/// A semantic label for the signup button on the starter page. | ||
static String starterPageSignupButtonSemantic = | ||
'starter_page_signup_button_semantic'; | ||
|
||
/// A semantic label for the login button on the starter page. | ||
static String starterPageLoginButtonSemantic = | ||
'starter_page_login_button_semantic'; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.