Skip to content

Commit

Permalink
Revert "Make project template workspace icon tab navigable (#57908)"
Browse files Browse the repository at this point in the history
This reverts commit 571257c.
  • Loading branch information
sanchitmalhotra126 committed Apr 10, 2024
1 parent 0e8c8b9 commit d4476b2
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 43 deletions.
42 changes: 23 additions & 19 deletions apps/src/templates/ProjectTemplateWorkspaceIcon.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,6 @@ import React from 'react';
import ReactTooltip from 'react-tooltip';
import _ from 'lodash';
import PropTypes from 'prop-types';
import moduleStyles from './project-template-workspace-icon.module.scss';
import classNames from 'classnames';

var msg = require('@cdo/locale');

const IMAGE_BASE_URL = '/blockly/media/';
Expand All @@ -21,36 +18,43 @@ export default class ProjectTemplateWorkspaceIcon extends React.Component {

render() {
return (
<div className={moduleStyles.container}>
<button
type="button"
<div style={styles.container}>
<img
style={styles.projectTemplateIcon}
className="projectTemplateWorkspaceIcon"
src={IMAGE_BASE_URL + 'connect.svg'}
data-tip
data-for={this.tooltipId}
aria-describedby={this.tooltipId}
data-event="mouseenter mouseleave click"
className={moduleStyles.projectTemplateButton}
>
<img
className={classNames(
'projectTemplateWorkspaceIcon',
moduleStyles.projectTemplateIcon
)}
src={IMAGE_BASE_URL + 'connect.svg'}
alt={msg.workspaceProjectTemplateLevel()}
/>
</button>
alt={msg.workspaceProjectTemplateLevel()}
/>
<ReactTooltip
id={this.tooltipId}
role="tooltip"
wrapper="div"
effect="solid"
place={this.props.tooltipPlace}
>
<div className={moduleStyles.tooltip}>
<div style={styles.tooltip}>
{msg.workspaceProjectTemplateLevel()}
</div>
</ReactTooltip>
</div>
);
}
}

const styles = {
container: {
display: 'inline-block',
},
tooltip: {
maxWidth: 200,
lineHeight: '20px',
whiteSpace: 'normal',
},
projectTemplateIcon: {
marginRight: 5,
marginTop: -1,
},
};
24 changes: 0 additions & 24 deletions apps/src/templates/project-template-workspace-icon.module.scss

This file was deleted.

0 comments on commit d4476b2

Please sign in to comment.