Skip to content

Commit

Permalink
fix: pagination & tab
Browse files Browse the repository at this point in the history
  • Loading branch information
muhamien committed May 21, 2024
1 parent 3b4c926 commit df06b38
Show file tree
Hide file tree
Showing 8 changed files with 60 additions and 4 deletions.
24 changes: 24 additions & 0 deletions packages/components/pagination/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,29 @@
# @jala-banyu/pagination

## 1.1.38

### Patch Changes

- fix typo aria attribute

## 1.1.37

### Patch Changes

- testing change role to aria-role

## 1.1.36

### Patch Changes

- remove duplicated role on pagination

## 1.1.35

### Patch Changes

- fixing accessibility

## 1.1.34

### Patch Changes
Expand Down
2 changes: 1 addition & 1 deletion packages/components/pagination/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@jala-banyu/pagination",
"version": "1.1.34",
"version": "1.1.38",
"description": "The Pagination component allows you to display active page and navigate between multiple pages.",
"keywords": [
"pagination"
Expand Down
3 changes: 2 additions & 1 deletion packages/components/pagination/src/use-pagination-item.ts
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,8 @@ export function usePaginationItem(props: UsePaginationItemProps) {
const getItemProps: PropGetter = (props = {}) => {
return {
ref: domRef,
role: "button",
"aria-role": "button",
// role: "button",
tabIndex: isDisabled ? -1 : 0,
"aria-label": ariaLabel,
"aria-current": dataAttr(isActive),
Expand Down
6 changes: 6 additions & 0 deletions packages/components/tabs/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
# @jala-banyu/tabs

## 1.1.4

### Patch Changes

- fixing accessibility

## 1.1.3

### Patch Changes
Expand Down
2 changes: 1 addition & 1 deletion packages/components/tabs/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@jala-banyu/tabs",
"version": "1.1.3",
"version": "1.1.4",
"description": "Tabs organize content into multiple sections and allow users to navigate between them.",
"keywords": [
"tabs"
Expand Down
1 change: 1 addition & 0 deletions packages/components/tabs/src/tab.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,7 @@ const Tab = forwardRef<"button", TabItemProps>((props, ref) => {
data-pressed={dataAttr(isPressed)}
data-selected={dataAttr(isSelected)}
data-slot="tab"
role="button"
{...mergeProps(
tabProps,
!isDisabled
Expand Down
24 changes: 24 additions & 0 deletions packages/core/react/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,29 @@
# @jala-banyu/react

## 1.3.10

### Patch Changes

- fix aria attribute

## 1.3.9

### Patch Changes

- testing aria label pagination

## 1.3.8

### Patch Changes

- update pagination

## 1.3.7

### Patch Changes

- fix accesibility

## 1.3.6

### Patch Changes
Expand Down
2 changes: 1 addition & 1 deletion packages/core/react/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@jala-banyu/react",
"version": "1.3.6",
"version": "1.3.10",
"description": "Banyu core React UI library",
"author": "Muhammad Amien <[email protected]>",
"homepage": "#",
Expand Down

0 comments on commit df06b38

Please sign in to comment.