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

fwf-3661:Added styles for task variable modal #332

Merged
Show file tree
Hide file tree
Changes from 3 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,13 @@ export const FormInput: React.FC<FormInputProps> = ({

const inputClassNames = `form-control-input ${icon ? 'with-icon' : ''} ${className}`;

const handleKeyDown = (e: KeyboardEvent<HTMLInputElement>) => {
// Check if Enter key is pressed and onIconClick is provided
if (e.key === 'Enter' && onIconClick) {
onIconClick();
}
};

return (
<Form.Group controlId={id}>
{label && (
Expand All @@ -69,7 +76,7 @@ export const FormInput: React.FC<FormInputProps> = ({
aria-label={ariaLabel}
required={required}
className={inputClassNames}
onKeyDown={(e) => (e.keyCode === 13 && onIconClick())}
onKeyDown={handleKeyDown}
onClick={onClick}
/>
{icon && (
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,10 @@ export const ReusableProcessTableRow: React.FC<ProcessTableRowProps> = ({ item,

return (
<tr>
<td className="w-25">
<td className="w-25 text-ellipsis">
<span className="ms-4">{item.name}</span>
</td>
<td className="w-20">
<td className="w-20 text-ellipsis">
<span>{item.processKey}</span>
</td>
<td className="w-15">{HelperServices?.getLocaldate(item.modified)}</td>
Expand Down
59 changes: 59 additions & 0 deletions forms-flow-theme/scss/_modal.scss
Original file line number Diff line number Diff line change
Expand Up @@ -593,3 +593,62 @@
border: none;
}
}
.task-variable-modal {
padding-top: 5rem;
padding-bottom: 5rem;
.modal-body {
padding: 0px !important;
}
.info-pill-container{
padding:var(--spacer-200) var(--spacer-250) ;
display: flex;
flex-direction: column;
gap:var(--spacer-150);
}
.form-field-container{
width: 80%;
float: left;
background: var(--ff-gray-000); // #F1F1F1
padding: var(--spacer-200) var(--spacer-250);
}
.field-details-container{
padding:var(--spacer-200) var(--spacer-250) ;
width: 20%;
float: right;
background: #FFF;
}
.pill-container{
min-height: 6rem;
gap: var(--spacer-025);
display: flex;
flex-wrap: wrap;
padding: var(--spacer-050) var(--spacer-100);
align-items: flex-start;
flex: 1 0 0;
align-self: stretch;
border-radius: var(--radius-0100);
border: 1px solid var(--ff-gray-300, #AFB4B6);
shuhaib-aot marked this conversation as resolved.
Show resolved Hide resolved
background: var(--ff-white, #FFF);
}

.select-text{
color: var(--ff-gray-400);
font-size: var(--ff--font-size-sm);
}
.selected-var-text{
color: var(--ff-dark);
font-size: var(--ff--font-size-sm);
padding-bottom: var(--spacer-050);
}

.details-section{
display: flex;
flex-direction: column;
gap: var(--spacer-150);
.text-bold{
font-weight: var(--font-weight-xl);
font-size: 1rem;
shuhaib-aot marked this conversation as resolved.
Show resolved Hide resolved
word-break: break-all;
}
}
}
4 changes: 4 additions & 0 deletions forms-flow-theme/scss/_table.scss
Original file line number Diff line number Diff line change
Expand Up @@ -182,3 +182,7 @@ $status-radius: 50%;
justify-content: space-between;
width: 100%;
}
.text-ellipsis{
overflow: hidden;
text-overflow: ellipsis;
}
11 changes: 11 additions & 0 deletions forms-flow-theme/scss/external/formio.scss
Original file line number Diff line number Diff line change
Expand Up @@ -39,3 +39,14 @@
font-size: var(--font-size-xs) !important;
}
}


.formio-hilighted{
box-sizing: border-box;
border-radius: var(--radius-050);
border: 2px dashed var(--ff-base-600);
padding: 8px 10px; //TBD need to update
}
.formio-component {
transition: border 0.05s ease, padding 0.3s ease;
}
Loading