solex2006 / SELIProject

SELI Project
9 stars 17 forks source link

Elements that should not be implemented as buttons #44

Open ecureuill opened 4 years ago

ecureuill commented 4 years ago

Expected Behavior

Current Behavior

Above list is not an exhaustive, but meant to help you understand the problem. I'd suggest that when working in some existent code, to search for problems like this.

image

Steps to Reproduce

Environment

Browser: all

Possible Implementation

or, using react component

TEXT DESCRIPTION


NOTE:
Custom widgets are interactive interface components designed to meet unique UX needs. They are created by adding functionality to native widgets or to non-interactive components such as <div> elements.

Custom widgets are most appropriate for complex controls (such as a text field, listbox, and button that together function as a combo box). For simple controls (such as buttons or links), it's better to use native widgets, as they require significantly less coding to make them accessible.

A custom widget usually requires an ARIA widget role to communicate the correct function to assistive technologies and enable them to interact with the widget.

If possible, replace the custom widget with a native HTML control. (As a rule, it's better to use native semantics than to modify them using ARIA roles.) If needed, use CSS styling to achieve the desired appearance.

If you can't use a native HTML control:

1. Familiarize yourself with the [ARIA design patterns](https://www.w3.org/TR/wai-aria-practices-1.1) for custom widgets.
2. Add the correct widget role specified by the design pattern. Exception: A few design patterns do not require a widget role.

Most design patterns have additional requirements related to (1) roles, states, properties, and (2) keyboard interaction. These requirements are covered in the Custom widgets test.
github-actions[bot] commented 4 years ago

This Feature is ready to be implemented.

CAndresH commented 4 years ago

I checked the components you mentioned and changed the functionalities of the buttons by link in each case, in addition, I looked for other incorrect buttons and found the following elements to which I changed the functionality image

image

image image image

I have not found any more buttons, but when I see a button, I will change if necessary

github-actions[bot] commented 4 years ago

This feature have been implemented and is ready for Funcional Test. Please, test the feature.

github-actions[bot] commented 4 years ago

Functional Test failed! Please, review your solution.


Course duration icon is still a button, as well as course cards.

WhatsApp Image 2020-04-17 at 22 39 51 WhatsApp Image 2020-04-17 at 22 39 51 (1) WhatsApp Image 2020-04-17 at 22 39 52 WhatsApp Image 2020-04-17 at 22 39 52 (1)