Skip to content

Commit

Permalink
added title prop for Button (#87)
Browse files Browse the repository at this point in the history
  • Loading branch information
Swathi-eGov authored Jun 24, 2024
1 parent cf10937 commit 1e775c0
Show file tree
Hide file tree
Showing 8 changed files with 14 additions and 5 deletions.
2 changes: 1 addition & 1 deletion react/modules/Project/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
},
"dependencies": {
"@egovernments/digit-ui-react-components": "1.8.1-beta.4",
"@egovernments/digit-ui-components": "0.0.2-beta.7",
"@egovernments/digit-ui-components": "0.0.2-beta.8",
"lodash": "^4.17.21",
"react": "17.0.2",
"react-date-range": "^1.4.0",
Expand Down
2 changes: 1 addition & 1 deletion react/modules/core/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
"prepublish": "yarn build"
},
"dependencies": {
"@egovernments/digit-ui-components": "0.0.2-beta.7",
"@egovernments/digit-ui-components": "0.0.2-beta.8",
"@egovernments/digit-ui-react-components": "1.8.1-beta.4",
"react": "17.0.2",
"react-dom": "17.0.2",
Expand Down
2 changes: 1 addition & 1 deletion react/modules/sample/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
},
"dependencies": {
"@egovernments/digit-ui-react-components": "1.8.1-beta.4",
"@egovernments/digit-ui-components": "0.0.2-beta.7",
"@egovernments/digit-ui-components": "0.0.2-beta.8",
"react": "17.0.2",
"react-date-range": "^1.4.0",
"react-dom": "17.0.2",
Expand Down
2 changes: 1 addition & 1 deletion react/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@
"@egovernments/digit-ui-module-sample": "0.0.1",
"@egovernments/digit-ui-react-components": "1.7.10",
"@egovernments/digit-ui-svg-components": "1.0.4",
"@egovernments/digit-ui-components": "0.0.2-beta.7",
"@egovernments/digit-ui-components": "0.0.2-beta.8",
"babel-loader": "8.1.0",
"clean-webpack-plugin": "4.0.0",
"css-loader": "5.2.6",
Expand Down
4 changes: 4 additions & 0 deletions react/ui-components/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,10 @@ All notable changes to this project will be documented in this file.

The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## [0.0.2-beta.8] - 2024-06-24
### New Changes
- Added Title prop for Button

## [0.0.2-beta.7] - 2024-06-24
### New Changes
- Added ViewMore button for Timeline Molecule.
Expand Down
2 changes: 1 addition & 1 deletion react/ui-components/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@egovernments/digit-ui-components",
"version": "0.0.2-beta.7",
"version": "0.0.2-beta.8",
"license": "MIT",
"main": "dist/index.js",
"module": "dist/index.modern.js",
Expand Down
1 change: 1 addition & 0 deletions react/ui-components/src/atoms/Button.js
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,7 @@ const Button = (props) => {
form={props.formId}
onClick={props.onClick}
disabled={props?.isDisabled || null}
title={props?.title || ""}
style={props.style ? props.style : null}
>
<div
Expand Down
4 changes: 4 additions & 0 deletions react/ui-components/src/atoms/stories/Button.stories.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,9 @@ export default {
isSuffix: {
control: "boolean",
},
title: {
control: "text",
},
},
};

Expand Down Expand Up @@ -57,6 +60,7 @@ const commonArgs = {
variation: "",
isSuffix: false,
size: "",
title:""
};

// Button default
Expand Down

0 comments on commit 1e775c0

Please sign in to comment.