Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Table: Error message styling for all Inputs #2721

Draft
wants to merge 15 commits into
base: main
Choose a base branch
from

Conversation

prashanthr6383
Copy link
Collaborator

@prashanthr6383 prashanthr6383 commented Jul 23, 2024

Description

Added new styles to the table inputs error message

  1. Text Input
  2. Number Input
  3. Autocomplete
  4. Select

note: for autocomplete duplicate error message is shown which is part of another issue #2720.

References

Fixes #2711, Fixes #2712, Fixes #2722, Fixes #2725, Fixes #2727

Type of change

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • Documentation update

How Has This Been Tested?

Checklist

  • My code follows the style guidelines of this project
  • I have performed a self-review of my own code
  • I have commented my code, particularly in hard-to-understand areas
  • I have made corresponding changes to the documentation
  • My changes generate no new warnings
  • I have added tests that prove my fix is effective or that my feature works
  • New and existing unit tests pass locally with my changes
  • Any dependent changes have been merged and published in downstream modules
  • I have checked my code and corrected any misspellings

@prashanthr6383 prashanthr6383 added the modus-table Modus Table component development label Jul 23, 2024
@prashanthr6383 prashanthr6383 requested a review from coliff as a code owner July 23, 2024 14:52
Copy link

netlify bot commented Jul 23, 2024

Deploy Preview for moduswebcomponents ready!

Name Link
🔨 Latest commit 41cbe99
🔍 Latest deploy log https://app.netlify.com/sites/moduswebcomponents/deploys/66cedbe1cafa480008ec0b30
😎 Deploy Preview https://deploy-preview-2721--moduswebcomponents.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.
Lighthouse
Lighthouse
1 paths audited
Performance: 25 (🟢 up 1 from production)
Accessibility: 98 (no change from production)
Best Practices: 92 (no change from production)
SEO: 92 (no change from production)
PWA: -
View the detailed breakdown and full score reports

To edit notification comments on pull requests, go to your Netlify site configuration.

@prashanthr6383 prashanthr6383 changed the title Table: Text input error message styling Table: Error message styling for all Inputs Jul 24, 2024
@prashanthr6383 prashanthr6383 marked this pull request as draft July 24, 2024 12:08
@prashanthr6383 prashanthr6383 marked this pull request as ready for review July 24, 2024 13:53
stencil-workspace/src/index.html Fixed Show fixed Hide fixed
stencil-workspace/src/index.html Fixed Show fixed Hide fixed
@prashanth-offcl
Copy link
Collaborator

@prashanthr6383 There are two scenarios with respect to validation.

  1. Inbuilt constraint validation - The validations will be handled inside the component and upon receiving invalid user input, the component notifies the consumer with the details
  2. Consumer side validation - The consumer will validate the input by listening to the change event emitted from the component and tells us what error message to display when required.

Our form components already have the required support for consumer side validation so we will first focus on extending the same for the table component as a first step. This PR is related to the inbuild constraint validation that is not implemented in our form components yet, the proposed changes rely on the errorText that is passed by the consumer to emit the error event back to the consumer. With that said I'll move the PR to draft state for now until we decide on the desired behavior and what we are going to support.

@prashanth-offcl prashanth-offcl marked this pull request as draft August 28, 2024 12:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
modus-table Modus Table component development
Projects
None yet
2 participants