Skip to content

Commit

Permalink
#1584 Remove stroke from read-only nodes (#1585)
Browse files Browse the repository at this point in the history
  • Loading branch information
tomlyn authored Oct 5, 2023
1 parent 14c6aaf commit c7bbe0b
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ export default class ReadOnlyCanvas extends React.Component {

getConfig() {
const config = Object.assign({}, this.props.config, {
enableParentClass: "writable",
enableParentClass: "read-only",
enableNodeFormatType: "Vertical",
enableLinkType: "Straight",
enableLinkDirection: "LeftRight",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,14 +14,13 @@
* limitations under the License.
*/

.writable {
.read-only {

&.config-editing-actions-false {
.d3-node-group {
& .d3-node-label,
& svg path {
color: $disabled-02;
stroke: $disabled-02;
color: $disabled-03;
fill: $disabled-03;
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -262,9 +262,9 @@
"x_pos": 18,
"y_pos": 14.4,
"width": 175,
"height": 76,
"height": 80,
"class_name": "d3-comment-rect",
"content": "This canvas shows a flow of data processing nodes where enableDetachableLinks is switched on.",
"content": "This canvas allows the user to switch between edit, read-only and locked mode. Click the icons the toolbar.",
"associated_id_refs": []
}
]
Expand Down

0 comments on commit c7bbe0b

Please sign in to comment.